What is the best way of printing to two drawers within the same print job?

45 pts.
Tags:
*IBMSNMPDRV
ILE Program
iSeries printing
V5R4
I need to print client 1, page 1 from drawer 1, client 1, pages 2-10 from drawer 2 , then cilent 2, page 1 from drawer 1, client 2,pages 2-10 from drawer 2 etc. I am doing this from an ILE program with an externally defined print file. I have tried executing an override printer command to drawer 2 after page 1 prints to change the drawer and form type  and then another to set it back to drawer 1 and other form type after pages 2-10 , but this doesn't seem to work. Below is the device description for the printer. Sys driver is IBMSNMPDRV Any suggestions are most welcome.
Option . . . . . . . . . . . . . . :   *BASIC   
Category of device . . . . . . . . :   *PRT     
                                                
Device class . . . . . . . . . . . :   *LAN     
Device type  . . . . . . . . . . . :   3812     
Device model . . . . . . . . . . . :   1        
LAN attachment . . . . . . . . . . :   *IP      
Port number  . . . . . . . . . . . :   9100     
Physical attachment  . . . . . . . :   *DIRECT  
Online at IPL  . . . . . . . . . . :   *YES     
Font:                                           
  Identifier . . . . . . . . . . . :   12       
  Point size . . . . . . . . . . . :   *NONE    
Form feed  . . . . . . . . . . . . :   *AUTOCUT 
Separator drawer . . . . . . . . . :   *FILE    
Separator program  . . . . . . . . :   *NONE   
Printer error message  . . . . . . :   *INFO   
Message queue  . . . . . . . . . . :   *CTLD   
Current message queue  . . . . . . :   QSYSOPR 
  Library  . . . . . . . . . . . . :     QSYS  
Activation timer . . . . . . . . . :   170     
Inactivity timer . . . . . . . . . :   *SEC15  
Line speed . . . . . . . . . . . . :   19200   
Word length  . . . . . . . . . . . :   8       
Type of parity . . . . . . . . . . :   *NONE   
Stop bits  . . . . . . . . . . . . :   1       
Host print transform . . . . . . . :   *YES    
Manufacturer type and model  . . . :   *LEXMARKT632   
Paper source 1 . . . . . . . . . . :   *A4            
Paper source 2 . . . . . . . . . . :   *A4            
Envelope source  . . . . . . . . . :   *NUMBER10      
ASCII code page 899 support  . . . :   *NO            
Image configuration  . . . . . . . :   *NONE          
Character identifier . . . . . . . :   *SYSVAL    
     

Software/Hardware used:
V5R4M0

Answer Wiki

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

I think you need to use two printer files in the program. One to print to drawer 1 and another printer file to print to dwawer 2.

Discuss This Question: 2  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
  • philpl1jb
    Not the best way but it's better than my alternative External Printer file Header keyword DRAWER "Specifies the source drawer containing paper or envelopes." This may require AFPDS printer file and IFPDS printer. Phil
    49,435 pointsBadges:
    report
  • TomLiotta
    A record format that needs to come from a specific drawer that is different from the drawer specified for the printer file should have the DRAWER() keyword on it. DRAWER() works with *SCS printer files as well as AFPDS though there can be differences when a single record format goes across multiple pages. Whether or not a particular remote printer knows what to do with the request is a different question. 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