I have copied a spoolfile to my PC manually using iSeries Navigator. And I've copied a database file to the IFS...
using the CPYTOIMPF command. So I suspect there must be a way to get the spoolfile to the IFS -- either manually or a command. When I try to drag it from the basic operations, printer output, it will not work. Is this a security issue? I looked for a command but did not find one.
You kind of answered your own question
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)
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
Dig Deeper on Documentation
Related Q&A from Ken Graap
The BRMS Network feature allows a BRMS system to connect to other BRMS systems via a network, and enables a user to consolidate media such as backup ... Continue Reading
The only option to correct damage preventing file journaling is to use the RCLSTG command. Continue Reading
IBM's iSeries Backup and Recovery manual answers many questions related to system backup and disaster recovery. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.