Hello IBM i Community,
I hope this message finds you well. I am currently working on an IBM i 7.3 system and facing an issue with the CPYSPLF command when copying spooled files to stream files. Specifically, when using the QWPDEFAULT workstation customizing object (WSCST), I encounter unwanted print control characters such as a NUL character at the beginning of Line 1 and an FF (form feed) control character every 51 lines.
To provide some context, here is what I am trying to achieve:
- Objective: Copy spooled files to stream files without including any print control characters.
- Current Approach: Using
CPYSPLF with QWPDEFAULT.
Here is a snippet of the command I am currently using:
CPYSPLF FILE(MYDOC)
JOB(123456/USER1/PROCESS1)
SPLNBR(*LAST)
TOFILE(*TOSTMF)
TOSTMF('/textfiles/mydoc.txt')
WSCST(QSYS/QWPDEFAULT)
Issue
The resulting document includes:
- A NUL character at the beginning of Line 1.
- An FF control character every 51 lines.
Request
Could anyone provide guidance or best practices on how to create or modify a workstation customizing object so that these unwanted print control characters are not included in the stream file?
Any scripts, detailed steps, or examples would be greatly appreciated.
Thank you in advance for your assistance!
Best regards,
Randy
------------------------------
Randy Stevenson
MWI Animal Health
------------------------------
#IBMiAccessClientSolutions