INPUT / INSERT (I)


The INPUT command permits new formatted data records to be created, edited, and added to a data set. Use the INPUT command without a parameter to format an input record using the currently selected record layout. INSERT is a Synonym for INPUT.

The command is available in the Edit function in Formatted and Unformatted mode.

image2021-6-3_12-49-8.png

record-layout

Specifies a different record layout to use to format the new record. The specified layout must be included either as part of an XREF entry or as part of a record layout containing several 01 levels. If the specified record layout is not valid, the message LAYOUT NOT FOUND is produced. (Use the USE command to see the list of available record layouts.)

Guidelines

COBOL data formats are initialized as shown in COBOL Data Format Initialization. PL/I data formats are initialized as shown in PL/I Data Format Initialization.

Each field of the new record is automatically initialized to a null value corresponding to the field format. Unlike records created with the I (insert) line command, input records are not initialized using the MASK record.

Entering an INPUT command displays an initialized record according to the selected format. No record number is assigned at this time; therefore, the word INPUT displays in the header where a record number would normally be displayed.

If performed before the new input record has been modified:

  • Scrolling left or right causes File-AID to discard the new record and to show the previously displayed record.
  • Using the END primary command causes File-AID to discard the new record and return to the Edit Data set Specification screen.

Once the input record has been modified:

  • The input record is added unless the CANCEL or UNDO primary command is used.
  • Scrolling right from an edited input record adds the edited record to the edit data set and creates a new initialized input record.
  • Scrolling left adds the edited input record and causes a return to the previously displayed record.
  • Use the END primary command to add the input record and exit the edit screen.

The procedures and options available to edit an existing record are also available to edit an input record. You can use the INIT command to create a new null record. The PROTECT display option is initially set OFF for each new INPUT record.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*