Import File Format

The Import program reads a series of records from the Import file. Each record begins with a 3-character command.

Valid commands are as follow:

Command

Function

 

ADD

Add item to be tracked.

ADV

Advance item along specified route.

AEA

Add item attribute (extended ).

ATT

Add item attribute (standard).

CLL

Clear location.

DEL

Delete tracked item

DSP

Print message to terminal.

HLD

Apply group hold to item.

INS

Insert item to be tracked.

MAT

Modify item attribute.

MOD

Modify tracked item.

MOV

Move item from source region to destination region.

PTS

Enable/disable (1/0) production setpoints.

REG

Modify region status.

STT

Initiate a production start.

STP

Initiate a production stop.

Subsequent fields in the record are delimited by a field delimiter character (usually |) defined on the very first line of the Import file.

Note: A blank line in the import input file causes the Import program to terminate processing of the input file at that point.

All fields in the file are of type character. The actual data passed to PRT is converted to the correct type by the Import program.

For the DELete command the disposition can be specified as "SCRAP", "DEL", or "DELETE". These strings are translated to the manifest constants SCRAP and DELETE.

For any API functions that require a region location argument (e.g. the ADD and INSert commands) the region location can be specified as "ALL", "LAST" ("ENTRY"), or "FIRST" ("EXIT"). These are translated to the manifest constants ALL_LOCATIONS, LAST and FIRST, respectively.

For arguments that are required to be a Boolean value, the strings "T", "TRUE", "F", or "FALSE" can be specified, which translate to the manifest constants TRUE and FALSE.

More information

Production Tracking Import Program: PRT_IMPORT.