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!!
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!!


Comment