Create a file on magnetic tape: Difference between revisions
Content added Content deleted
m (classify this as a draft until there are more entries) |
m (whitespace) |
||
Line 1: | Line 1: | ||
{{draft task|File System Operations}} |
{{draft task|File System Operations}} |
||
In this task, the job is to create a new file called "TAPE.FILE" of any size on Magnetic Tape |
In this task, the job is to create a new file called "TAPE.FILE" of any size on Magnetic Tape |
||
=={{header|JCL}}== |
=={{header|JCL}}== |
||
<lang JCL> |
<lang JCL>// EXEC PGM=IEBGENER |
||
// EXEC PGM=IEBGENER |
|||
//* Create a file named "TAPE.FILE" on magnetic tape; "UNIT=TAPE" |
//* Create a file named "TAPE.FILE" on magnetic tape; "UNIT=TAPE" |
||
//* may vary depending on site-specific esoteric name assignment |
//* may vary depending on site-specific esoteric name assignment |
||
Line 14: | Line 11: | ||
//SYSUT1 DD * |
//SYSUT1 DD * |
||
DATA TO BE WRITTEN TO TAPE |
DATA TO BE WRITTEN TO TAPE |
||
/* |
/* </lang> |
||
</lang> |
Revision as of 10:30, 23 October 2012
Create a file on magnetic tape is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.
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=IEBGENER //* Create a file named "TAPE.FILE" on magnetic tape; "UNIT=TAPE" //* may vary depending on site-specific esoteric name assignment //SYSPRINT DD SYSOUT=* //SYSIN DD DUMMY //SYSUT2 DD UNIT=TAPE,DSN=TAPE.FILE,DISP=(,CATLG) //SYSUT1 DD * DATA TO BE WRITTEN TO TAPE /* </lang>