Create tape device file

This topic shows an example of how to create a tape device file.

In the following example, the program creates a tape device file, TAP05 in library QGPL, for output that is written to tape:

CRTTAPF  FILE(QGPL/TAP05) DEV(TAP01)
REELS(*SL) SEQNBR(3)
CODE(*EBCDIC) ENDOPT(*UNLOAD)

The program specifies the tape REELS parameter with the value *SL, indicating that the tape uses standard labels. The device name is TAP01. The program writes a file at sequence number three on the tape (SEQNBR parameter), in EBCDIC code (CODE parameter), and unloads it after it has processed (ENDOPT parameter).