GetPrinterOverrides

Printer Overrides

Major Business Rule

Object Name: B4000990

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

To retrieve the printer overrides for a given terminal ID and program ID.  The overrides are in the 
F40096 table.



Technical Specification


Retrievals:

Retrieve the F40096 with keys TERM and PID and return the OUTQ.




^

Data Structure

D4000990A - Get Printer Overrides

Parameter NameData ItemData TypeReq/OptI/O/Both
szTerminalIDTERMcharNONENONE

The workstation ID number.

szProgramIDPIDcharNONENONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

szOutputQueueOUTQcharNONENONE

The waiting area a job goes to after it has processed.  Output Queues are sometimes attached to printers.  If an OUTQ is not specified, it 
will default from the user's job description.

cSuppressErrorMessageEV01charNONENONE

An option that specifies the type of processing for an event.

szErrorMessageIDDTAIcharNONENONE

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

Related Functions

None

Related Tables

F40096 Default Print Queues
UpdatePrinterOverrides

UpdatePrinterOverrides

Printer Overrides

Major Business Rule

Object Name: B4000990

Parent DLL: COPBASE

Location: Client/Server

Language: C

Functional Description

Purpose

This function is to update or add F40096 table.  If the record exists in F40096, update Output Queue. 
 If the record does not exist, then add a new record with Terminal ID, Program ID, and Output Queue.



Setup Notes and Prerequisites


Special Logic




Technical Specification

Edits:
1.If the record exists in F40096,  update the Output Queue only.
2.If the record does not exist in F40096, add the new record with Terminal ID, Program ID, and 

Output 

Queue to F40096.






^

Data Structure

D4000990B - Update Printer Overrides

Parameter NameData ItemData TypeReq/OptI/O/Both
szTerminalIDTERMcharNONENONE

The workstation ID number.

szProgramIDPIDcharNONENONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

szOutputQueueOUTQcharNONENONE

The waiting area a job goes to after it has processed.  Output Queues are sometimes attached to printers.  If an OUTQ is not specified, it 
will default from the user's job description.

Related Functions

None

Related Tables

F40096 Default Print Queues