Our OS is V5R4. I am using cpytoimpf to import .txt file (tab delimited) to DB2 physical file. If I remove the FLDDLM(*TAB), I get all the records but the fields have overlapped data. If I use the (*TAB) I get one record and errors on the remaining copy.(error code 7) Here is the command I am using.
CPYFRMIMPF FROMSTMF('//CCGUPLOADS/corepcompm.txt') TOFILE(PURLIN/EPCOMPM)
MBROPT(*REPLACE) RCDDLM(*CRLF) STRDLM(*NONE) RMVBLANK(*NONE) FLDDLM(*TAB)
RPLNULLVAL(*FLDDFT)
I am relatively new to using this statement... Thanks in advance...
Software/Hardware used:
ASKED:
March 24, 2009 6:19 PM
UPDATED:
March 25, 2009 1:46 PM
Have you checked that you don’t have any stray/additional tabs in the data in the input file? This could cause the data to be imported into invalid fields in the file (char into dec etc.)
Anything in the joblog relating to this?