RSCS 3.2.0 Sample Prefix Postscript strings

Product Number: 5684-096 Release 3.2.0

Prefix strings can be defined and used by LPR-type links to initialize the printer, such as select the paper tray or turning on duplexing. When the printer is postscript, the prefix strings can be postscript commands.

The prefix strings can be defined within the configuration file read by the LPRXFORM exit making them selectable via a form.

A sample PIPELINE that could be used to convert commands from EBCDIC to the format required by the prefix strings is:

          'PIPE < INPUT EBCDIC A',
          '| Strip',
          '| XLATE BA AD',
          '| XLATE BB BD',
          '| XLATE from 1047 to 819',
          '|Specs 1-* C2X 1',
          '|Join * /0D0A/',
          '| > OUTPUT ASCII A'

Some sample postscript commands are:

To turn off duplexing and select the paper from tray 1 for a separator page, the postscript commands would be
%!PS-AdobeCRLF
statusdict begin false setduplexmode 0 setpapertray endCRLF
The prefix string would be
PREFIX=2521
PREFIX=50532D41646F62650D0A
PREFIX=7374617475736469637420626567696E2066616C736520
PREFIX=7365746475706C65786D6F646520302073657470617065
PREFIX=727472617920656E640D0A
To split the prefix string before and after the separator page, The prefix string would be
PREFIX=FF04
To turn on duplexing and select the paper from tray 2 for a separator page, the postscript commands would be
*%!PS-AdobeCRLF
*statusdict begin true setduplexmode 1 setpapertray endCRLF
The prefix string would be
PREFIX=2521
PREFIX=50532D41646F62650D0A
PREFIX=7374617475736469637420626567696E207472756520
PREFIX=7365746475706C65786D6F6465203120736574706170
PREFIX=65727472617920656E640D0A
Please note, the above postscript commands work with the IBM network printer. The paper tray numbers may be different for each printer manufacture.