Welcome to JRI's Help page for SETPTR

SETPTR

To see your current settings, simply type:
SETPTR

This will show the 6 mandatory values and other optional settings:
Field Value Comment
Unit 0 Always use zero
Width 160  
Length 59  
Top margin 0  
Bot margin 0  
Mode 1 Use 3 to send to _HOLD_

Options are:
Noeject    
Nfmt   Suspends all UniData print formating
Nhead   NHEAD (or NOHEAD) suppresses the banner page
Nomessage   Suppresses messages from the Linux lp spooler
Destination Q804 Use DESTINATION Q804, DEST Q804 or AT Q804 to change the Linux printer (re-set to SB setting when you login)
Copies 1  
These are my default settings after logging in (the actual Linux command issued):
SETPTR ,,,,,,NFMT,NHEAD,NOEJECT,NOMESSAGE,COPIES 1,BRIEF,AT Q804
which yields:
Spooler & options: lp -c -o nobanner -s -n1 -dQ804

Unlisted options are:
Field Value Comment
BANNER Name of Hold File The name of the export going to the _HOLD_ file - only valid with Mode = 3
BRIEF n/a suppresses the "are you sure" prompt
DEFER* time Delays the printing until the specified time (can give unexpected results due to time zones)
EJECT* n/a Ejects a blank page at the end of the print
LNUM* n/a Prints line numbers in the left margin
* These options are rarely (if ever) used.

Send Print File to _HOLD_ w/ 1 Header and No Page Breaks

SETPTR 0,1024,99999,0,0,3,BANNER JRI.txt,NHEAD,NFMT,BRIEF
      or
SETPTR 0,1024,99999,0,0,3,BANNER JRI.xls,NHEAD,NFMT,BRIEF

LIST VOC SAMPLE 150 HDR.SUPP NI.SUPP LPTR (or whatever)
  • HDR.SUPP - suppresses the "LIVE" or "SORT" command from the top of each page
  • NI.SUPP - suppresses the total record count at the end of a LIST or SORT
ED _HOLD_ JRI.txt (or JRI.xls)

Recommended Command to Re-set the Print Queue

Simply LOGIN and re-log into SB to ensure you get all the parameters set.

Minimal Command to Re-set the Print Queue

SETPTR 0,,,,,,DEST Q804
but you will retain the prior values of whatever you did not specifically choose (so use LOGIN to be safe).