18.08.2013 Views

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LOAD<br />

LOAD<br />

The LOAD; command applies to the Fast Database Load feature on OS 2200 based hosts<br />

only.<br />

When you create a Report to run a Fast Load, use the LOAD; command to define how the<br />

format of your external input file relates to the Ispec into which you are loading your data.<br />

The Ispec item name is validated to ensure that it is an I/O or Output item. There is no<br />

validation on the edit type of the input. Loading will occur unless it is rejected by the<br />

RDMUTL utility.<br />

Considerations for Using the LOAD; Command<br />

The following restrictions should be noted in regard to your LOAD; data items:<br />

$ You must include a LOAD; command for each field of your input file, and associate it<br />

with the appropriate data item in your target Ispec. For fields that are not to be loaded,<br />

code the LOAD; command with the length but no data item, which specifies that the<br />

field is a filler.<br />

$ LOAD; commands must be in the sequence of the fields on your input file. Each data<br />

item in your Ispec can be loaded only from a single field defined with the LOAD;<br />

command. Checks are performed to ensure that no duplicates exist.<br />

$ The data item can be a System Data item such as GLB-DTIME, MAINT, or ACTMTH.<br />

GLB-DTIME should be unique across all records in your Ispec.<br />

$ The current or a future load may fail, or a future reorganization may fail if you load a<br />

field into records that may not be unique. If the definition does not include a field to be<br />

loaded into GLB-DTIME, then the load process will append a unique GLB-DTIME field<br />

to each record of the input file. This will involve preprocessing the file, and appending<br />

values to the end of each record from where GLB-DTIME will be loaded.<br />

$ Not every data item in your Ispec needs to be related to the input file. If your input<br />

contains fields that are not be loaded, you should write a space/zero as the first two<br />

bytes of the record when creating the input file. When you define the Fast Load options<br />

for your Report, set the Space/Zero leads each Record field to Y. If you want to<br />

assign a constant value to a field, you must do this at the time of creating the input file.<br />

This load process cannot assign constant values other than spaces or zeros to fields.<br />

$ The loading of numerics is right-aligned. Consult your Relational Data Management<br />

System (RDMS 2200) Administration Guide for a description of how to prepare a file<br />

for loading, and the particular requirements of the file, especially where numeric fields<br />

are to be loaded.<br />

$ When an alphanumeric item is longer than the data item into which it is being loaded,<br />

the value of the item will be truncated from the right.<br />

$ When a numeric item is longer than the data item into which it is being loaded, no<br />

truncation occurs. This is because RDMSLOAD accepts a wide variety of lengths for<br />

numeric fields. You must ensure that your numerics fit the size specified in the<br />

definition of the Ispec being loaded.<br />

v 1-151

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!