Precisely Speaking
May 21, 2012, 06:34:08 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: So what's news with you?  Tell us about it in "Getting To Know You"!
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: How do you specify a name for Output to the HOLD file?  (Read 662 times)
DonQuixote
Rock Star
*****
Posts: 108


To Dream the Impossible Dream...


« on: October 01, 2010, 01:34:33 PM »

How do you specify a name for Output to the HOLD file?
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #1 on: October 03, 2010, 08:01:07 PM »

On a /RD, you can go into F6 and F6 again and there's a File/DIF Destination or something like that.  The thing to be aware of, however, is that you'll get one record per printed page with the page number added to the end.  So if you named the page MYPAGE for example, you'll get MYPAGE1, MYPAGE2, etc.  So when you do this, it's generally a good idea to output to a long stationery so that everything goes into the "1" item, and then call a process when its done to rename that page to whatever you want it to be called.
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
Tom Pellitieri
Rock Star
*****
Posts: 171


Tom Pellitieri - Toledo, Ohio


« 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
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!