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(--+-1600------+---)--'
                  +-3200------+
                  +-6250------+
                  +-*FMT3480--+
                  +-*FMT3490E-+
                  +-*FMT3570--+
                  +-*FMT3570E-+
                  +-*FMT3590--+
                  +-*QIC120---+
                  +-*QIC525---+
                  +-*QIC1000--+
                  +-*QIC2GB---+
                  +-*QIC3040--+
                  +-*QIC5010--+
                  +-*FMT2GB---+
                  +-*FMT5GB---+
                  '-*FMT7GB---'
 
>-----+--------------------------+------------------------------>
      '-COMPACT(--+-*DEVD-+---)--'
                  '-*NO---'
 
>-----+--------------------------+------------------------------>
      |        .-*EBCDIC--.      |
      '-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--.      |
      '-REPLACE(--+-*NO---+---)--'
 
>-----+-------------------------------+------------------------><
      |        .-*BLANK--------.      |
      '-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.


[ Information Center Home Page | Feedback ] [ Legal | AS/400 Glossary ]