CRTTAPF (Create Tape File) syntax diagram


Job: B,I Pgm: B,I REXX: B,I Exec
>>-CRTTAPF------------------------------------------------------>
 
          .-*CURLIB/------.                           (1)
>--FILE(--+---------------+--tape-device-file-name--)----------->
          '-library-name/-'
 
>--+-----------------------------------+------------------------>
   |       .-*NONE----------------.    |
   |       | .------------------. |    |
   |       | V             (2)  | |    |
   '-DEV(--+---device-name------+-+--)-'
 
>--+-----------------------------------------+------------------>
   |       .-*NONE----------------------.    |
   |       | .------------------------. |    |
   |       | V                   (3)  | |    |
   '-VOL(--+---volume-identifier------+-+--)-'
 
>--+------------------------------------------+----------------->
   |         .-*SL--.  .-1---------------.    |
   '-REELS(--+-*NL--+--+-number-of-reels-+--)-'
             +-*NS--+
             +-*BLP-+
             '-*LTM-'
 
>--+---------------------------------+-------------------------->
   |          .-1---------------.    |
   '-SEQNBR(--+-*END------------+--)-'
              +-*NEXT-----------+
              '-sequence-number-'
 
>--+-------------------------------------+---------------------->
   |         .-*NONE----------------.    |
   '-LABEL(--+-data-file-identifier-+--)-'
 
>--+-------------------------+---------------------------------->
   |            .-*DATA-.    |
   '-FILETYPE(--+-*SRC--+--)-'
 
>--+-------------------------------+---------------------------->
   |          .-*CALC---------.    |
   '-RCDLEN(--+-record-length-+--)-'
 
>--+------------------------------+----------------------------->
   |          .-*CALC--------.    |
   '-BLKLEN(--+-block-length-+--)-'
 
>--+--------------------------------------+--------------------->
   |           (4)   .-0-------------.    |
   '-BUFOFSET(-------+-*BLKDSC-------+--)-'
                     '-buffer-offset-'
 
>--+------------------------------+----------------------------->
   |            (5)   .-*FB--.    |
   '-RCDBLKFMT(-------+-*F---+--)-'
                      +-*V---+
                      +-*VB--+
                      +-*D---+
                      +-*DB--+
                      +-*VS--+
                      +-*VBS-+
                      '-*U---'
 
>--+------------------------------------+----------------------->
   |          .-*NO----------------.    |
   |          |       .-*NOCHECK-. |    |
   '-EXTEND(--+-*YES--+-*CHECK---+-+--)-'
 
>--+-------------------------------+---------------------------->
   |           .-*DEVTYPE-----.    |
   '-DENSITY(--+-*CTGTYPE-----+--)-'
               '-tape-density-'
 
>--+------------------------+--+-----------------------+-------->
   '-COMPACT(--+-*DEVD-+--)-'  |        .-*EBCDIC-.    |
               '-*NO---'       '-CODE(--+-*ASCII--+--)-'
 
>--+--------------------------------+--------------------------->
   |           .-*NONE---------.    |
   '-CRTDATE(--+-creation-date-+--)-'
 
>--+----------------------------------+------------------------->
   |           .-*NONE-----------.    |
   '-EXPDATE(--+-*PERM-----------+--)-'
               '-expiration-date-'
 
>--+-------------------------+---------------------------------->
   |          .-*REWIND-.    |
   '-ENDOPT(--+-*LEAVE--+--)-'
              '-*UNLOAD-'
 
>--+---------------------------------------------------------------+-->
   |             .-*NONE--------------------------------------.    |
   |             | .-*LIBL/--------.                          |    |
   '-USRLBLPGM(--+-+---------------+--user-label-program-name-+--)-'
                   +-*CURLIB/------+
                   '-library-name/-'
 
>--+----------------------+------------------------------------->
   |          .-*NO--.    |
   '-IGCDTA(--+-*YES-+--)-'
 
>--+-------------------------------------+---------------------->
   |            .-*IMMED------------.    |
   '-WAITFILE(--+-*CLS--------------+--)-'
                '-number-of-seconds-'
 
>--+---------------------+-------------------------------------->
   |         .-*NO--.    |
   '-SHARE(--+-*YES-+--)-'
 
>--+--------------------------------------+--------------------->
   |       .-*LIBCRTAUT--------------.    |
   '-AUT(--+-*CHANGE-----------------+--)-'
           +-*ALL--------------------+
           +-*USE--------------------+
           +-*EXCLUDE----------------+
           '-authorization-list-name-'
 
>--+-----------------------+--+-----------------------------+--><
   |           .-*YES-.    |  |        .-*BLANK--------.    |
   '-REPLACE(--+-*NO--+--)-'  '-TEXT(--+-'description'-+--)-'
 
 

Notes:

  1. All parameters preceding this point can be specified in positional form.

  2. A maximum of 4 repetitions.

  3. A maximum of 50 repetitions.

  4. The value *BLKDSC is valid only for a file with record block format *D or *DB.

  5. The values *F, *FB, *VS, *VBS, and *U are valid for both EBCDIC and ASCII codes; *V and *VB are valid only for EBCDIC; *D and *DB are valid only for ASCII.