I want to copy a spool file to the IFS. I tried ===> CPYTOIMPF FROMFILE(FILES/SPRINT198) TOSTMF('print/testprint.txt') STMFCCSI D(*STDASCII) RCDDLM(*CRLF) DTAFMT(*FIXED) and I got garbage -
Software/Hardware used:
iseries
ASKED:
September 19, 2011 5:15 PM
UPDATED:
March 31, 2012 4:00 PM
How did you access the file once it was in the print directory?
Did you use a transfer method that was attempting to also convert the data. the STMFCCSID(*STDASCII) in the CPYTOIMPF has already converted the data to ASCII, so if you were not doing a straight transfer (binary in FTP, for example) you were treating the ASCII as if it was EBCDIC and translating it again.
Most often, this “double translation” is the cause of “garbage”
What is the CCSID of FILES/SPRINT198? And what is your QCCSID system value?
Tom
If you have OPNav or Iseries Navigator open a outque get to spool file and drag and drop spoolfile to Desktop or Windows folder. Automatically converts to a text file which opens in notepad with wordwrap off.