AS/400 Supress Form feed and Carriage return Characters for spool file

75 pts.
Tags:
iSeries
PRTF
Spool files
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

Answer Wiki

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

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

Discuss This Question: 7  Replies

 
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
  • djac
    It would be useful to know how you are 'sending' the spool file to the Wintel system. Please detail the steps involved.
    900 pointsBadges:
    report
  • Eamon60
    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 pointsBadges:
    report
  • WoodEngineer
    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.
    6,530 pointsBadges:
    report
  • ahshehab
    DearEamon60,
    I have the same problem when I try to print spool AS400 file over xerox printer. Can you help me?
    85 pointsBadges:
    report
  • TomLiotta

    I have the same problem when I try to print spool AS400 file over xerox printer.

    It's not clear what you mean by the "same problem". Sending to a spooler queue on a Wintel server won't be the same as sending to a Xerox printer.

    Please describe the problem that you are having. Include the method you're using to send the file as well as any definitions that describe the printer, e.g., the device description.

    Tom

    125,585 pointsBadges:
    report
  • ahshehab
    I have Outq, its name is AXEROX. I do the following:
    wrksplf
    Change (2) and write over command line
    outq(AXEROX)

    Then, I find my spool file over Xeror Unix erver, but it include special charcters of form feed and this is escape empty pages when printing.
    85 pointsBadges:
    report
  • ahshehab
    My OUTQ Description as follow:

    Status:                                                   
      Writer active  . . . . . . . . . . . :   Y              
      Writer name(s) if active . . . . . . :   AXEROX         
      Output queue held  . . . . . . . . . :   N              
    Maximum spooled file size:                                
      Number of pages  . . . . . . . . . . :   *NONE          
      Starting time  . . . . . . . . . . . :                  
      Ending time  . . . . . . . . . . . . :                  
    Writers to autostart . . . . . . . . . :   *NONE          
    Display any file . . . . . . . . . . . :   *NO            
    Job separators . . . . . . . . . . . . :   0              
    Operator controlled  . . . . . . . . . :   *YES           
    Order of files on queue  . . . . . . . :   *FIFO          
    Data queue . . . . . . . . . . . . . . :   *NONE          
      Library  . . . . . . . . . . . . . . :                  
    Authority to check . . . . . . . . . . :   *OWNER            
    Remote system  . . . . . . . . . . . . :   *INTNETADR        
    Remote printer queue . . . . . . . . . :   *LPDPRT3          
    Queue for writer messages  . . . . . . :   QSYSOPR           
      Library  . . . . . . . . . . . . . . :     QSYS            
    Connection type  . . . . . . . . . . . :   *IP               
    Internet address . . . . . . . . . . . :   10.1.151.141      
    Destination type . . . . . . . . . . . :   *OTHER            
    Host print transform . . . . . . . . . :   *YES              
    Manufacturer type and model  . . . . . :   *XRX4235       
    Workstation customizing object . . . . :   *NONE          
      Library  . . . . . . . . . . . . . . :                  
    Image configuration  . . . . . . . . . :   *NONE          
    Destination options  . . . . . . . . . :   *NONE          
    Print separator page . . . . . . . . . :   *NO            
    User defined option  . . . . . . . . . :   *NONE          
    User defined object:                                      
      Object . . . . . . . . . . . . . . . :   *NONE          
        Library  . . . . . . . . . . . . . :                  
      Object type  . . . . . . . . . . . . :                  
    User driver program  . . . . . . . . . :   *NONE          
      Library  . . . . . . . . . . . . . . :                                                                                
    Spooled file ASP . . . . . . . . . . . :   *SYSTEM     
    Text description . . . . . . . . . . . :   *BLANK      
    85 pointsBadges:
    report

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