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 nothing.
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"
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.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 3  Replies