I am using CPYFRMIMPF in a CL without ERRRCDFILE which runs ok with a few truncation errors in the job log. When I add ERRRCDFILE the CL no longer runs. I created the error file as CRTDUPOBJ and also CRTSRCPF. I guess I am not sure how to define the error file and IBM docs don't really say how http://publib.boulder.ibm.com/iserie...l/cpyfrmim.htm . Any ideas on how to define this error table?
USING CRTDUPOBJ
USING CRTSRCPF
USING CRTDUPOBJ
Code:
Cause . . . . . : File FILENETER in DWEXTLIB is not the correct file type for the copy command. -- The Copy From Import File (CPYFRMIMPF) command require a source, DDM, program described physical, or externally described physical file for the Field Definition File (FLDDFNFILE) and the Error Record File (ERRRCDFILE). Recovery . . . : Do one of the following to change the file name on the parameter and try the request again: -- Specify the correct file type on the FLDDFNFILE, or ERRRCDFILE parameter. -- When using the FROMSTRMF parameter with the ERRRCDFILE parameter, the ERRRCDFILE must be a source physical file. If the records in the FROMSTRMF are fixed, the ERRRCDFILE must be greater than or equal to the record length of the tofile. If the records in the FROMSTRMF are delimited, the ERRRCDFILE must have a minimum record length equal to the sum of the TOFILE record length,the number of fields in the TOFILE and 813.
USING CRTSRCPF
Code:
Message . . . . : TOMBR(*FIRST) not allowed for file FILENETER in DWEXTLIB. Cause . . . . . : TOMBR(*FIRST) is not allowed because the to-file FILENETER in library DWEXTLIB does not contain any members. Recovery . . . : Specify a member name on the TOMBR parameter. Then try the request again.
Comment