75 pts.
 AS/400 Supress Form feed and Carriage return Characters for spool file
Does anyone know how to supress form feed and Carriage return charcters in a print file. I am sending a Spool file to a wintel server for data input. When I display the spool file I don't see any of these special characters. However, when the wintel server gets the file, these special characters are present. This is causing problems for the software that resides on the Wintel server. Any thoughts in how I can supress these chracters? Thanks, Eamon

Software/Hardware used:
ASKED: August 6, 2008  6:25 PM
UPDATED: August 14, 2008  4:30 PM

Answer Wiki:
Hi, A simple way is to create a file with the same length of the print file - CRTPF FILE(QTEMP/SPLF) RCDLEN(132) - then do CPYSPLF FILE(xxx) TOFILE(QTEMP/SPLF) JOB(12345/RICK/RICKSJOB). This creates a file from the spool file without any control characters. You will get blank lines, which you can remove pretty easily. Then send that file instead of the spool file. Rick
Last Wiki Answer Submitted:  August 14, 2008  4:30 pm  by  RickJenn   75 pts.
All Answer Wiki Contributors:  RickJenn   75 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

It would be useful to know how you are ‘sending’ the spool file to the Wintel system.

Please detail the steps involved.

 900 pts.

 

Diac, thank for the feedback. We are coummunicating to the wintel sever through an outq pointing to to a network wintel server. Below is an example of the outq definition. I hope this helps clarify the problem.

Queue: LATFAXSND Library: QUSRSYS

Status:
Writer active . . . . . . . . . . . : Y
Writer name(s) if active . . . . . . : LATFAXSND
Output queue held . . . . . . . . . : N
Maximum spooled file size:
Number of pages . . . . . . . . . . : *NONE
Starting time . . . . . . . . . . . :
Ending time . . . . . . . . . . . . :
Writers to autostart . . . . . . . . . : 1
Display any file . . . . . . . . . . . : *YES
Job separators . . . . . . . . . . . . : 0
Operator controlled . . . . . . . . . : *YES
Order of files on queue . . . . . . . : *FIFO
Data queue . . . . . . . . . . . . . . : *NONE
Library . . . . . . . . . . . . . . :
Queue: LATFAXSND Library: QUSRSYS

Authority to check . . . . . . . . . . : *DTAAUT
Remote system . . . . . . . . . . . . : SSCCFAX

Remote printer queue . . . . . . . . . : LATFAXSND

Queue for writer messages . . . . . . : QSYSOPR
Library . . . . . . . . . . . . . . : *LIBL
Connection type . . . . . . . . . . . : *IP
Destination type . . . . . . . . . . . : *OTHER
Host print transform . . . . . . . . . : *YES
Manufacturer type and model . . . . . : *WSCST
Workstation customizing object . . . . : ESKERFAX
Library . . . . . . . . . . . . . . : QGPL
Image configuration . . . . . . . . . : *NONE
Destination options . . . . . . . . . : *NONE

Print separator page . . . . . . . . . : *YES
User defined option . . . . . . . . . : *NONE
User defined object:
Object . . . . . . . . . . . . . . . : *NONE
Library . . . . . . . . . . . . . :
Object type . . . . . . . . . . . . :
User driver program . . . . . . . . . : *NONE
Library . . . . . . . . . . . . . . :
Spooled file ASP . . . . . . . . . . . : *SYSTEM
More…

 75 pts.

 

One option is to copy the spool file to a DB2 file (CPYSPLF) with CTLCHAR(*NONE ).
This will strip off the forms control character, leaving just the data in the report in your physical file.

 5,555 pts.