Inserting and Updating Type Files through the Batch Interface

About this task

To use the INSERT TYPE or UPDATE TYPE command from the batch interface, perform the following steps:

Procedure

  1. Place your command in the batch job stream.
  2. Submit the job while IBM® Connect:Direct® is running.
  3. Verify your results.

    The following example adds a Type record named NEWALLOC to the Type file:

    INSERT TYPE  TYPEKEY=NEWALLOC -
                 DCB=(DSORG=PS) -
                 DISP=(NEW,CATLG) -
                 UNIT=3380

    IBM Connect:Direct users can then use the NEWALLOC Type key in a COPY command to allocate a new physical sequential file on a 3380 unit device that is cataloged on normal termination.

    The following example updates a record in the Type file. When referring to the NEWALLOC Type key, the destination file is an existing PS file allocated on a 3390 disk pack:

    UPDATE TYPE   TYPEKEY=NEWALLOC -
                  UNIT=3390