Example shows how to use variable spool file data to select
the printer input feed tray by paper type. It also shows selecting which printer to print the page to based on spool file data. The first reference line looks for "01" using the PRINTIF function and
loads "Plain" in buffer 2 if found. Reference 2 looks for "02" and loads "Color" to buffer 2 if found. References 3 and 4 load the outq to buffer 3. Reference 6 feeds the contents of buffer 2 to the TRAY function. A printer set up with paper type "Color" in one tray and "Plain" in another will make the proper selection. The DYNAMIC DISTRIBUTION function in Reference 7 uses the contents of buffer 3 for the queue so the printed output comes from PRT01 or PRT02 depending on spool file data.
download