|
You kind of answered your own question ... You can copy a spool file to a stream file but you have to move it to a DB file first!
Here's how I'd do it:
First create a database file like:
CRTPF FILE(QTEMP/DBfile) RCDLEN(132)
Next copy the spool file into that database file:
CPYSPLF FILE(MySpoolFile) TOFILE(QTEMP/DBfile)
Now that you have a database file, it is easily moved into the IFS like this:
CPYTOIMPF FROMFILE(QTEMP/DBfile)
TOSTMF('/home/keg/MySpoolFile.txt')
STMFCODPAG(*STDASCII) RCDDLM(*CRLF)
DTAFMT(*FIXED)
==================================
MORE INFORMATION ON THIS TOPIC
==================================
The Best Web Links: tips, tutorials and more.
Ask your OS/400 questions -- or help out your peers by answering them -- in our live OS/400 discussion forums.
Ask the Experts yourself: Our OS/400 gurus are waiting to answer your questions.
Check out this Search400.com Featured Topic: 20 ways to ensure a smooth OS upgrade
|