You are here: Development Standards > Routines > Application-SpecificRoutines > INSERLOT.PUB

# INSERLOT.PUB

INSERLOT.PUB is a public program that provides lot and/or serial number entry and updates Inventory files appropriately. To use INSERLOT.PUB for lot/serial entry, your application must use a transaction lot/serial number file identical in layout to the INLSxxx file.

`0060 ENTER FILE[ALL],PASS$,INLS$,INUPD1$,INUPD2$,INUPD3$,INCJ$,INLD$,INHI$,`
`0060:INHS$,INLH$,INLT$,INQL$,INQT$,INSH$,INSN$,INUM$,OSSE$,SORI$,O2$,`
`0060:PASS_TASK$,OSGUI$`

Variable | Description
FILE[ALL] | Standard file array used for the data file channel number
PASS$ | INSERLOT data template (see table below)
INLS$ | INLSxxx file template (Transaction Lot/Serial Number file)
INUPD1$ | INUPD current-values template (see INUPD.PUB)
INUPD2$ | INUPD old-values template (see INUPD.PUB)
INUPD3$ | File array template (see INUPD.PUB)
INCJ$ | INCJxxx file template (GL Adjustments file)
INLD$ | INLDxxx file template (Location Detail file)
INHI$ | INHIxxx file template (Detail History file)
INHS$ | INHSxxx file template (Summary History file)
INLH$ | INLHxxx file template (Lot History file)
INLT$ | INLTxxx file template (Lot Numbers file)
INQL$ | INQLxxx file template (Quantity Locations file)
INQT$ | INQTxxx file template (Quantity Totals file)
INSH$ | INSHxxx file template (Serial History file)
INSN$ | INSNxxx file template (Serial Numbers file)
INUM$ | INUMxxx file template (Units of Measure file)
OSSE$ | OSSE file template (Sequence Number file)
SORI$ | SORIxxx file template (Returned Items file)
O2$ | Inventory options string
PASS_TASK$ | Source transaction task: A - appending a line E - editing a line I - inserting a line
OSGUI$ | Template for GUI functions

Exit Points | Explanation
EXIT | INSERLOT.PUB does not return any errors.

PASS$ String Template Definition

The PASS$ string template is used to pass information to INSERLOT.PUB. The template is defined as follows:

Field | Type | Len | Description
IDES$ | C | 35 | Description of item
LDES$ | C | 30 | Description of location
TYPE$ | C | 1 | Entry type: 1 - serial entry 2 - lot entry 3 - serial/lotted entry
TQTY1 | B | 8 | Total ordered quantity
TQTY2 | B | 8 | Total shipped/received quantity
TQTY3 | B | 8 | Total backordered quantity
TCST | B | 8 | Total cost of all lots or serial numbers
TPRC | B | 8 | Total price of all serial numbers