CPYTOIMPF for copying spool file to IFS

5 pts.
Tags:
AS/400 Spool Files
CPYTOIMPF
IFS
IFS Commands
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.

Software/Hardware used:
iseries

Answer Wiki

Thanks. We'll let you know when a new response is added.

Do CPYSPLF to a DB file and then copy that to the IFS

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • BigKat
    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"
    8,100 pointsBadges:
    report
  • TomLiotta
    What is the CCSID of FILES/SPRINT198? And what is your QCCSID system value? Tom
    125,585 pointsBadges:
    report
  • Rickmcd
    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,605 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following