Thank you for the update.
That explains why you have a PF with the data already formatted like I displayed in one of my examples.
One might consider generated PDF's and retaining those in the IFS for a period of time. And maybe keeping a PF with the BOL number and where that PDF is and what name it has. One of the benefits of this is, if you change your overlay and format of the output your reprint program doesn't have to keep track of when that change occurred to handle multiple formats. PDF are easy to generate using free standard IBM supplied programs if you load
Original Message:
Sent: Mon October 23, 2023 10:21 AM
From: Mohan Eashver
Subject: Copy PF Member to a Spool File
After speaking with my colleague, l have to mention this so we can put off further curiosity.
We had to change our overlay & the Data-Map to account for the 5 blank lines on the top of the spool file.
We have to do this to regenerate Old & aged BOL's for which we only have a PF as a backup.
This is out of the ordinary & is not a normal way of applying Overlay's over a spool file.
Thank you all for chiming in on this topic.
Have a great week!
------------------------------
Mohan Eashver
Original Message:
Sent: Fri October 20, 2023 03:08 PM
From: Mohan Eashver
Subject: Copy PF Member to a Spool File
Rob/Satid/Dominique,
I don't know where to go after CPYTOSTMF.
But there is a good news, one of my colleague has a solution.
I will need to check with him how he did it & I will come back & post it for the benefit of all our IBM community.
------------------------------
Mohan Eashver
Original Message:
Sent: Fri October 20, 2023 09:55 AM
From: Dominique Gayte
Subject: Copy PF Member to a Spool File
Well done Robert.
MOHAN, all you have to do is use the CPYTOSTMF proposed by Robert.
------------------------------
Dominique Gayte
Original Message:
Sent: Fri October 20, 2023 09:37 AM
From: Robert Berendt
Subject: Copy PF Member to a Spool File
When I copy the spool file created by QPRINT back to a disk file using the following command:
CRTPF ROB/SPOOL RCDLEN(132)
CPYSPLF FILE(QPRINT) TOFILE(ROB/SPOOL) SPLNBR(*LAST) CTLCHAR(*PRTCTL)
DSPPFM FILE(ROB/SPOOL)
You can see:

That 006 says to start at line 6. Which explains your 5 blank lines. The 1's and 3's are space afters. This is how it compresses out the blank lines on DSPSPLF, DSPPFM, etc.
I do not see anything in OVRPRTF QPRINT to change this. I tried playing with it a little with
OVRPRTF FILE(QPRINT) CHLVAL((2 (1)))
but that didn't seem to help. And in my 37 years on this job that's probably the first time I ever tried the channel value parameter.
------------------------------
Robert Berendt IBMChampion
Original Message:
Sent: Fri October 20, 2023 08:42 AM
From: Robert Berendt
Subject: Copy PF Member to a Spool File
Dominique,
QPRINT was a great idea. That doesn't have the headings, footers and sidebars. However DSPSPLF doesn't match what you get on the actual printout. For example, any lines that are blank or all spaces are not shown on DSPSPLF. So I think I'm finally getting to what Mohan's issue is: Controlling where line one of the PF appears on the actual printed output. When you're trying to then take that printer file, and apply overlays and signatures to it to add graphics, this line spacing is quite critical.
------------------------------
Robert Berendt IBMChampion
Original Message:
Sent: Fri October 20, 2023 08:26 AM
From: Dominique Gayte
Subject: Copy PF Member to a Spool File
Mohan,
To understand where the problem is, you could try the following commands:
- Use a CPYF to a new file. Is there such a thing as a blank line at the beginning of the file? CPYF FROMFILE(PFLIB/FILE1) TOFILE(MOHANLIB/TEST1) and DSPPFM (MOHANLIB/TEST1)
- Use the QPRINT printer file instead of QSYSPRT
------------------------------
Dominique Gayte
Original Message:
Sent: Fri October 20, 2023 07:43 AM
From: Mohan Eashver
Subject: Copy PF Member to a Spool File
Hi Dominique,
There are no deleted records in the file & no empty lines in the file beginning of my file.
------------------------------
Mohan Eashver
Original Message:
Sent: Fri October 20, 2023 03:10 AM
From: Dominique Gayte
Subject: Copy PF Member to a Spool File
I Mohan,
Are you sure there aren't 5 empty records (with blanks) at the beginning of the file ?
------------------------------
Dominique Gayte
Original Message:
Sent: Thu October 19, 2023 08:07 AM
From: Mohan Eashver
Subject: Copy PF Member to a Spool File
Hello All,
I have a Physical File member & I need to convert it to a Spool File.
Here are the steps I am taking.
First to create a printer file as below:
CRTPRTF FILE(MOHANLIB/Y) PAGESIZE(51 110) OVRFLW(41)
Then copy the PF to the Printer File as below:
CPYF FROMFILE(PFLIB/FILE1) TOFILE(MOHANLIB/Y)
The spool file is successfully created.
But the spool file shows 5 blank lines, before it start showing the data from my Physical file.
In other words, the 1st row of the PF member shows on the 6th line of the Spool file.
Why is this so ?
I have tried overriding to QSYSPRT & I get the same result :
OVRPRTF FILE(QSYSPRT) PAGESIZE(51 110) OVRFLW(41)
CPYF FROMFILE(PFLIB/FILE1) TOFILE(QSYSPRT)
Is there any solution for this ?
Thank you
------------------------------
Mohan Eashver
------------------------------