Does anyone know how to suppress form feed and Carriage return characters in a print file (AS/400 spool file).

85 pts.
Tags:
AS/400
AS/400 printing
Spool files
Does anyone know how to suppress form feed and Carriage return characters in a print file. I am sending a Spool file to a xerox printer. When I display the spool file I don't see any of these special characters. However, when the xerox gets the file, these special characters are present. This is causing problems in printing over xerox.  Any thoughts in how I can suppress these characters? Thanks

Answer Wiki

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

Oops, my error. Did not read it well enough.

Good catch Tom

Discuss This Question: 15  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
  • CharlieBrowne

    Seems like this was answered in post http://itknowledgeexchange.techtarget.com/itanswers/as400-supress-form-feed-and-carriage-return-characters-for-spool-file/

    Have you tried what was suggested and if so, are you experiencing other issues?

    41,380 pointsBadges:
    report
  • TomLiotta
    This doesn't seem to be the same as the other question. Suppressing the control characters is almost certainly not the correct handling in this case; the printer requires the control characters. The most likely problem is that the device description is incorrect on the AS/400 so the wrong characters are embedded. We'd need to know what printer is used, how the device description is defined and possibly what the communications protocol is. -- Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    It looks as if the other question was simply copy/pasted while changing "Wintel server" to "Xerox printer". That makes it a little difficult to catch any significant differences. -- 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
  • TomLiotta

    ...it include special charcters of form feed and this is escape empty pages when printing.

    Essentially all spooled files contain form-feed characters, even from Windows.or Linux or anything else. That can be especially true for laser printers since the entire file can print on the same page if form-feeds don't tell the printer to eject a page and feed a new one. If you remove them, the output will be an unreadable mess.

    The general definition looks to be appropriate.

    Next thing to do is prove that programming is not putting extra form-feeds into the output. How is the output created?

    Tom

    125,585 pointsBadges:
    report
  • ToddN2000
    What does your DEVD look like for the XEROX printer ?
    11,100 pointsBadges:
    report
  • Splat
    If you're using a Xerox printer you'd best be served by going to their site & locating the most recent version of their XTOOLS library - it comes with *WSCST objects for the various printers & commands to help create the device descriptions.

    Xerox.com > Support & Drivers > Printers > WorkCentre 245/255 [for example] > Operating System (IBM AS/400) > AS400 Workstation Customization Object Library for Xerox Products

    The .zip file is a save file - FTP it to your system & restore the library.
    7,215 pointsBadges:
    report
  • TomLiotta
    Assuming a recent OS release (V5R4 and later) and current PTFs, the appropriate *WSCST is already on the system. But this doesn't seem related to a *WSCST. There doesn't seem to be any specific device controls that are being used. It's apparently just "print page after page". No multi-drawer controls, etc. As of yet, no use of a *WSCST is indicated. -- Tom
    125,585 pointsBadges:
    report
  • ahshehab
    I didn't find any thing over Xerox.co.
    Can anyone help me in this problem ?
    85 pointsBadges:
    report
  • TomLiotta
    So far all we have is an *OUTQ description. And that seems fine. That tells us something about how you send output to the printer, but it doesn't tell us anything about what's in the output that you send. What we haven't seen yet is the printer device description that your program uses to create the spooled file. What device description are you using? The device description is what the program uses to know what printer control characters to put into the output. -- Tom
    125,585 pointsBadges:
    report
  • ahshehab
    Dear Tom,
    I wrote my OUTQ descrpition in above note. After that:
    I have Outq, its name is AXEROX. I do the following:
    wrksplf
    Change (2) and write over command line
    outq(AXEROX)


    I didn't have any device description, I have only OUTQ description.
    85 pointsBadges:
    report
  • TomLiotta

    The spooled file cannot be created without a printer device description. (Well, that's not absolutely correct; but it's a near certainty.)

    Although you change the *OUTQ, the spooled file was created by some program. When that program was running, it had a reference to some printer device description on your system. The device might have been referenced through a printer file, e.g., QPRINT or QSYSPRT or a printer file created on your system. Or the printer could be chosen through the PRTDEV() attribute of the job that ran the program. Or it could come from a couple other places.

    But there was a printer device description that controlled how the spooled file was generated. There is always a printer device defined and used. We need to know what its attributes were.

    Tom

    125,585 pointsBadges:
    report
  • ahshehab
    My spool file device is PRT01 which its description is:

    Device description . . . . . . . . :   PRT01           
    Option . . . . . . . . . . . . . . :   *BASIC          
    Category of device . . . . . . . . :   *PRT            
                                                           
    Device class . . . . . . . . . . . :   *LAN            
    Device type  . . . . . . . . . . . :   *IPDS           
    Device model . . . . . . . . . . . :   0               
    LAN attachment . . . . . . . . . . :   *IP             
    Advanced function printing . . . . :   *YES            
    Port number  . . . . . . . . . . . :   0               
    Online at IPL  . . . . . . . . . . :   *YES            
    Font:                                                  
      Identifier . . . . . . . . . . . :   012             
      Point size . . . . . . . . . . . :   *NONE           
    Form feed  . . . . . . . . . . . . :   *CONT           
    Separator drawer . . . . . . . . . :   *FILE           

    Separator program  . . . . . . . . :   *NONE   
    Printer error message  . . . . . . :   *INQ    
    Message queue  . . . . . . . . . . :   *CTLD   
    Current message queue  . . . . . . :   QSYSOPR 
      Library  . . . . . . . . . . . . :     QSYS  
    Activation timer . . . . . . . . . :   170     
    Image configuration  . . . . . . . :   *NONE   
    Maximum pending requests . . . . . :   6       
    Print while converting . . . . . . :   *YES    
    Print request timer  . . . . . . . :   *NOMAX  
    Form definition  . . . . . . . . . :   F1C10110
      Library  . . . . . . . . . . . . :     *LIBL 

    Character identifier . . . . . . . :   *SYSVAL      
    Remote location:                                    
      Name or address  . . . . . . . . :   10.10.10.1   
                                                        
                                                        
                                                        
    User-defined object  . . . . . . . :   *NONE        
      Object type  . . . . . . . . . . :     *NONE      
    Data transform program . . . . . . :   *NONE        
    User-defined driver program  . . . :   *NONE        
    Dependent location name  . . . . . :   *NONE        
                                                        
    Allocated to:                                       
    Job name . . . . . . . . . . . . . :   *NONE        
      User . . . . . . . . . . . . . . :                
      Number . . . . . . . . . . . . . :                
    Published  . . . . . . . . . . . . :   *NO          
    Publishing information:                             
      Support duplex . . . . . . . . . :   *UNKNOWN     
      Support color  . . . . . . . . . :   *UNKNOWN     
      Pages per minute black . . . . . :   *UNKNOWN     
      Pages per minute color . . . . . :   *UNKNOWN     
      Location . . . . . . . . . . . . :   *BLANK       
      Data streams supported . . . . . :   *UNKNOWN     

    Text . . . . . . . . . . . . . . . :   *BLANK              
                                                               
    85 pointsBadges:
    report
  • TomLiotta

    Your printer device description is for an *IPDS printer. First thing I would do is create a device description for a Xerox 4235 printer and use it. If a problem happens with printer control, you'll want a device description that matches the device to help narrow it down. Does the Xerox have an IPDS option installed? (I didn't see IPDS available for 4235s, but I don't have full documentation.)

    How is the 4235 attached to the network? The available documentation is some 17 years old and doesn't help much.

    Is the spooled report for SCS or for AFPDS?

    Tom

    125,585 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