Printer Setup Inj BASEAnd T24
Printer Setup Inj BASEAnd T24
No part of this document may be reproduced or transmitted in any form or by any means,
electronic or mechanical, for any purpose, without the express written permission of TEMENOS Holdings NV.
Printer Set Up In jBASE And T24
Table of Content
Table of Content ................................................................................................................................... 2
Printer Setup in jBASE.......................................................................................................................... 3
Device Types................................................................................................................................. 3
Creation And Maintenance Of Form Queues ................................................................................. 3
Setting A Printer As Default Printer................................................................................................ 3
SP-NEWTAB ................................................................................................................................. 3
REST-SPOOLER .......................................................................................................................... 3
Obtaining spooler information ........................................................................................................ 3
Display Print Jobs For A Specific Port Number.............................................................................. 3
Display Print Jobs For A Specific Formqueue................................................................................ 3
Display Print Jobs For A Specific Status........................................................................................ 3
Deleting Form Queues................................................................................................................... 3
Form Queue Security..................................................................................................................... 3
Formqueue De-activation and Re-assignment............................................................................... 3
Printer Setup In T24 .......................................................................................................................... 3
Device Types
Every form queue created n jBase will have a device type associated with t. Following are the various
device types supported by jBase.
LPTR
Logical devices for form queues Specifies a direct UNIX device name. A background despooler
sssdaemon outputs the print jobs directly to the specified device.
PROG
Logical devices for form queues Specifies an external UNIX program. A background despooler
daemon pipes data from the print jobs to the command line.
will pipe the print job data to remote connection HostId for user spooler and output to device device
name.
PORT
Logical devices for form queues Specifies a port device.
queues the print jobs for output to port /dev/tty8b. Print jobs are despooled locally with the PORT-
DESPOOL command.
TAPE
Logical devices for formqueues Specifies a tape device configured in the jBASE devices file.
Example
SP-CREATE TRG LPTR /dev/lptr
will create the formqueue TRG and assign it to logical device type LPTR. LPTR is associated with
device /dev/lptr which will receive the output print job data.
Example
SP-DEVICE PAYROLL PORT /dev/tty8b
Syntax
SP-ASSIGN {formqueue} {options} {copies}
Syntax Elements
formqueue defines the name of the formqueue to which print jobs are queued. The
default formqueue is STANDARD.
options define the spooler assignment options which will be assigned to the
subsequent print jobs when queued to . ? displays current assignment.
copies defines the number of copies of the print report data are required to be output.
SP-NEWTAB
This is the command that is used to initialise the spooler environment in jBASE. This command can
be executed by root or a root equivalent only. It is normally executed after the jBASE installation. It
creates a new spooler structure. As you would be aware by now the JBCSPOOLERDIR is the
environmental variable in jBase that contains the path of the jspooler directory. This command once
executed, creates the jspooler directory under the path pointed by the JBCSPOOLERDIR variable and
created the following under the jspooler directory
jobs
The jobs directory contains the entries as below.
formqueue_0
formqueue_1
Each of the entries refer to a form queue. Formqueue_0 refers to the standard formqueue.
jspool_log
Prints jobs are identified by number. The jBASE spooler uses a control record in the jspool_log file -
NextJobNumber - to assign print job numbers. The structure of this record is:
When a job is created, this record is read (and locked) by the spooler. If the date in attribute 1 does
not match the current date (or the control record does not exist) then the counter in attribute 2 is reset
to 1 and the current date is assigned to attribute 1.
The counter is then used to check if a print job with that number already exists. It is incremented and
re-checked until an unused number is determined. In this way, gaps in the job number sequence that
occur because old jobs are deleted, are filled by new jobs generated on subsequent days.
When an unused number is determined, it is assigned to the print job and the counter is incremented
for the next job that is created.
The default directory in which the spooler files are created is called jspooler however SP-NEWTAB
allows a different directory to be specified. Before the spooler can be accessed by a user, it's location
must be specified using the environment variable JBCSPOOLERDIR. SP-NEWTAB allows security
settings for form queues and print jobs. The SP-NEWTAB command does not kill despooling daemons.
If a process was assigned to any formqueue other than STANDARD when the SP-NEWTAB
command was executed, the process will be assigned to NO QUEUE. The default formqueue
STANDARD is re-initialized with a LPTR logical device type.
REST-SPOOLER
When ever a form queue is created in jBase and assigned to a particular device, a background
process by name ‘jspprint’ gets initiated in the background for that form queue. The REST-SPOOLER
command, when executed starts a jspprint process for every form queue which does not have an
already active jspprint process in the background. (In uniVerse, irrespective of the number of
formqueues, there would be only one background process to handle all print requests that come to
uniVerse.)
SP-JOBS
The SP-JOBS screen displays a list of print jobs together with their status and formqueue assignment.
Each action code, except code 99, corresponds to a jBASE command that performs the same function.
Note: The SP-JOBS command displays only the print jobs associated with the jBASE spooler. The
command does not display information about the UNIX spooler.
TEMENOS Training Publications Page 7 of 13 November 2005
T2MBTT – R05 – 1.0
Printer Set Up In jBASE And T24
Example : PT 42
will display the first page of print jobs generated from port 42.
Example : Q TRG
will display the first page of print jobs belonging to the TRG form queue.
Example : S FNSH
will display the first page of print jobs whose current status is FINISH indicating all jobs which have
been completely despooled.
SP-PURGEQ
This command purges a formqueue of a specific print or all print jobs. This command will delete the
print job or jobs irrespective of status. If all jobs are requested the jspprint process for that form queue
wll also be stopped.
Note : This command can only be run by root (Unix) or an Administrator (NT).
The above screen will show up to 10 form queues at a time. The 4 fields shown for each form queue
are as follows:
possibilities.
-none- There is no security and any user can modify the definition of the
form queue.
-q.owners- The security state is such that all the form queue owners
shown in the field "Queue Owners" have permissions to modify
the form queue.
accname -This is the account name of the creator of the form queue, and
only this user has permission to modify the form queue.
Job This is the security for the print jobs , and can be one of three
possibilities:
-none- There is no security and any user can modify or view print jobs
placed on this form queue.
-q.owners- The security state is such that all the form queue owners
shown in the field "Queue Owners" have permissions to modify
or view any jobs placed on this form queue.
-j.creator- The security state is such that only the print job creator has
permissions to modify or view the print job.
Queue Owners This is a list of the owners of the form queue. The first name in the list is
the creator of the form queue and cannot be modified. The other names
in the queue and cannot be modified. The other names in the list are the
alternate form queue owners.
Menu Options
Use this option to modify the security state of the form queue. The syntax of the remainder of the
command is similar to the SP-SECURITY-QUEUE command.
Option 99 EXIT
Exits the SP-SECURITY menu back to the shell
the next and all subsequent print jobs will be output to the logical device PROG lp -d laser. In other
words, the command will redirect REPORTS to the UNIX spooler lp for device name laser.
PRINTER.ID
This file is used to define the valid printers on the system. It used both to validate the entry of a printer
id and to determine the physical destination of the output. A 'SYSTEM' entry must exist on this file.
This is used as the default for all output. An entry of HOLD can be set up. This special entry will hold
all output in the &HOLD& file and not spool the output.
DE.FORM.TYPE
The Form Type Table defines the width and depth of each printed form, and states which printer it is
produced on. It is also used to specify output format for tabular FILE output from ENQUIRY.REPORT.
A separate record on this table is required for each type of stationery on each printer. Whenever a
new Form Type is used two new files will automatically be created for processing the Formatted
Message Queue for that Form Type.
Example
When a print command is invoked in Globus from a DEAL SLIP/BATCH application etc, depending on
the application that it is being invoked from, the REPORT.CONTROL file or the User profile is read
and the DE.FORM.TYPE id is obtained and the corresponding record is read. From the
DE.FORM.TYPE record, the id of the PRINTER.ID application is obtained and the attributes of the
form are loaded. Then the PRINTER.ID application is read to determine the physical Unix level printer
name. Once the Unix printer name is obtained, the control goes to jBase where a formqueue with the
same name as that of the value in the PRIME.PRINTER.ID in the PRINTER.ID application. Once the
form queue is obtained, depending on the device type, the printing to the physical Unix level printer
happens.