Spool to Flat

10 pts.
Tags:
File conversion
File formats
Flat files
Flat to Spool
Spool files
Spool to Flat
Can anyone please guide me on the following: 1) How can I convert Spool to Flat and vice cersa ? 2) If I already have a Flat file. Can I convert it back into spool ? using what utility ? 3) What are the archivers that convert Flat to Spool and vice versa ?

Answer Wiki

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

Sure Spool to flat — CPYSPLF
if you want to be able to use it later with printer controls (lf’s and page)
– make the physical file one character wider
– use control *FCFC – first column of physical file will contain codes for lf & new page

Physical to Spool – CPYF
the to file would be something like QPRINT or QSYSPRT

OVRPRTF FILE(QSYSPRT) CTLCHAR(*FCFC) OUTQ(&OUTQ) +
FORMTYPE(COPYPACK) HOLD(*NO) SAVE(*NO) +
USRDTA(DUPLICATE) SPLFNAME(&SPLFNAME)

CPYF FROMFILE(QTEMP/Temp) TOFILE(QSYSPRT)

Here’s a good resource

http://www2.systeminetwork.com/resources/clubtech/tnt400/bo400ng/AS400Q0145.htm

But cpysplf will not work with AFPDS spoolfiles

Discuss This Question:  

 
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

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