The session table in the onpload database
The session table controls the parameters that onpload uses to start a load or unload job.
| Column | Type | Description |
|---|---|---|
| sessiontype | CHAR(1) | Describes the type of load or unload session:
|
| automate | CHAR(1) | Flag for automatically creating maps and formats
at run time:
|
| lockflag | CHAR(1) | Flag for locking mechanism that ipload uses |
| sessionid | SERIAL | Session identifier (primary key) |
| name | CHAR(130) | Name of the load or unload job. This name appears in the command line displayed in the Load Job Select or Unload Job Select window. |
| status | CHAR(1) | Job status:
|
| server | CHAR(40) | Override default server to load and unload |
| map | CHAR(18) | Name of the map that controls the load (foreign key to the name column of the maps table; the maps table specifies the format and, for unload jobs, the query) |
| infile | CHAR(160) | Name of the device array (foreign key to the name column of the device table) |
| hostname | CHAR(40) | Name of the computer on which the onpload utility is running |
| dbname | CHAR(30) | Name of database to be loaded or unloaded |
| filter | CHAR(128) | Filter for screening import data (foreign key to the name column of the filters table) |
| recordfilter | CHAR(384) | File in which to store filtered records |
| suspensefile | CHAR(384) | File in which to store records that do not pass conversion |
| rejectfile | CHAR(384) | File in which to place records that the database server rejected |
| logfile | CHAR(384) | File in which to place session status messages |
| projectid | INTEGER | Project for maps and formats (foreign key to the project table) |
| headersize | INTEGER | Size in bytes of header information to strip from input |
| quiet | INTEGER | If true, suppresses status message output |
| tracelevel | INTEGER | Higher values result in more status messages |
| sourcetrace | INTEGER | If true, source and module line numbers are placed in status message outputs |
| multicthread | INTEGER | Sets the maximum number of conversion threads that you can invoke on a device |
| blocksize | INTEGER | I/O block size for accessing device |
| filetype | INTEGER | Specifies the type of file: tape, array, pipe (UNIX™ only) |
| number_records | INTEGER | Specifies the number of records to load |
| start_record | INTEGER | Specifies the number of the record at which to start loading |
| maxerrors | INTEGER | Maximum number of errors to allow before aborting the load or unload |
| swapbytes | INTEGER | Specifies the number of bytes to swap (If swapbytes is |
| runmode | INTEGER | Contains
a value that qualifies onpload to perform a load
or unload operation. You can determine the run mode by selecting the loadmode and runmode fields
from the session table. For load operations, the runmode is
a combination of the following values:
For example, you could have this command for a load operation: For this command for a load job,
the runmode value is: For unload operations, the runmode is a combination
of the following values:
|
| loadmode | INTEGER | Type of job:
|
| caseconvert | INTEGER | Case conversion type. Convert to:
|
| commitinterval | INTEGER | Commit interval for committing a load transaction. The value is specified in the Load Options window, The Load Options window. The commit interval applies only to deluxe mode. |
| socketport | INTEGER | Set by onpload to specify the port number of the connection |
| numtapes | INTEGER | Number of tapes to load |
Tip: Deluxe-mode loads do not support the "
no
conversion"
option and the "
with conversion and do not
generate violations table"
option.