CPTYTOSTMF problem

5 pts.
Tags:
CPYTOSTMF
iSeries
iSeries Commands
QSYS
QSYS.LIB
I am getting error in cpytostmf command while getting the member to ifs folder which is object is not a file or is a file with attributes not supported by this command. object not copied /QSYS.LIB/LIBRARY.LIB/FILENAME.FILE/MBRNAME.MBR

Answer Wiki

Thanks. We'll let you know when a new response is added.

From the help text of CPYTOSTMF:

<i>When copying from a
member, the file may be a source physical file or a
program-described physical file. Source physical files
with multiple data fields are not supported. </i>

So essentially it’s source files, flat files with no fields or save files only.

Externally described database files are not supported.

If you want to copy an externally described database file, first create a flat file and copy it to that first, then use the CPYTOSTMF command to copy that.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    Adamwkiuk2002 is correct. Copying a multi-field externally-described database file to a streamfile doesn't make sense. The possible variations in different data types, lengths, CCSIDs and all other attributes, would make the CPYTOSTMF command impossible. CPYTOSTMF is intended for simple direct transfer of lines to records or records to lines. When you need to handle multiple fields, use CPYTOIMPF instead... or write your own utility. Tom
    125,585 pointsBadges:
    report
  • sivajivja

    Hi All,

    i have created member type TXT which has simple java code.just i want to crate CPYTOSTMF i'm getting error .please help.

     

    10 pointsBadges:
    report
  • TomLiotta
    i’m getting error .please help.   We can't help. You didn't show us the command you are using, and you didn't tell us what error you're seeing. If you do show us the error, be sure to include the message ID.   Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following