|
Tom Pellitieri
|
 |
« Reply #2 on: October 04, 2010, 09:10:39 AM » |
|
In UniData, you can use the BANNER option on SETPTR from TCL. The basic syntax I use is:
SETPTR 0,<cols>,<rows>,<top>,<bot>,<mode>,NFMT,NOEJECT,NOMESSAGE,BRIEF,COPIES <n>,DEST <aixqueue>,<more>
Parameter details:
The "0" indicates the default form queue. You can use queues 1-31 within BASIC to print to separate jobs simultaneously, but I'll leave that discussion for another time...
The next four fields indicate total columns and rows, plus top and bottom margins if desired. We normally use 133 columns with 65 rows, and zero margins.
The <mode> should be one of the following: 1 = Print, 3 = Hold and Suppress, 6 = Hold and Print
The next fields are typical options. BRIEF prevents the system from asking you to confirm the settings. You can specify a number of Copies (<n>) and the destination print queue <aixqueue>
The <more> section controls identification of the HOLD record. You have two options.
If you use Mode 1 (Print), this should be NHEAD to suppress job header pages.
If you use Mode 3 or 6, this should be
BANNER <jobname>
or
BANNER UNIQUE <jobprefix>
If you use BANNER MYREPORT, the entry in _HOLD_ will be MYREPORT, and it will overwrite any other entry with that name. If you use BANNER UNIQUE MYREPORT, a four digit sequence number will be added, so the entry will look like MYREPORT_1234
As an example, I have and end of month job which issues this command:
SETPTR 0,133,65,0,0,3,NFMT,NOEJECT,NOMESSAGE,BRIEF,COPIES 1,DEST ACCT,BANNER UNIQUE EOMRPT
I currently have two jobs in _HOLD_: EOMRPT_1245 and EOMRPT_1246
I wrote a subroutine that lets me specify Mode, Queue, Copies and Job ID. If the Job ID ends with a "-", the routine uses BANNER UNIQUE rather than BANNER. Otherwise, it sets everything to as described above.
--Tom
|