ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

CPYFRMSTMF Error!! Pls Help!!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CPYFRMSTMF Error!! Pls Help!!

    I try to copy text file from a CD to a physical file which is in my library, the command is:

    CPYFRMSTMF FROMSTMF('/QOPT/YYMMDD_HHSS/TEMPFILE.TXT')
    TOMBR('/QSYS.LIB/MYLIB.LIB/PFILEA.FILE/PFILEA.MBR') MBROPT(*REPLACE)

    Then, an error ocurred, "Object is not a file or is a file with attributes not supported by this command."

    Cause . . . . . : Object /QSYS.LIB/MYLIB.LIB/PFILEA.FILE/PFILEA.MBR must
    be either a source physical file that has three fields or a program
    described file. Externally described files and source physical files
    containing fewer or more than three fields are not permitted by this
    command.

    There are 3 fields in the PFILEA.

    Does anyone know how to slove these problem??? Thanks a million!!

  • #2
    Re: CPYFRMSTMF Error!! Pls Help!!

    Try using CPYFRMIMPF to place this data in a physical file.
    if you can attach one of the files and I will post the exact command for you.

    Jamie
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment

    Working...
    X