Create a file on magnetic tape

From Rosetta Code
Task
Create a file on magnetic tape
You are encouraged to solve this task according to the task description, using any language you may know.

In this task, the job is to create a new file called "TAPE.FILE" of any size on Magnetic Tape


JCL

<lang JCL> // EXEC PGM=IEFBR14 //* Create a file named "TAPE.FILE" on magnetic tape //ANYNAME DD UNIT=TAPE,DSN=TAPE.FILE,DISP=(,CATLG) </lang>