5 pts.
 CPYTOIMPF
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

Answer Wiki:
Do CPYSPLF to a DB file and then copy that to the IFS
Last Wiki Answer Submitted:  September 19, 2011  6:44 pm  by  CharlieBrowne   32,855 pts.
All Answer Wiki Contributors:  CharlieBrowne   32,855 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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”

 7,185 pts.

 

What is the CCSID of FILES/SPRINT198? And what is your QCCSID system value?

Tom

 108,055 pts.

 

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.

 1,480 pts.