Need sample JCL to create and format a new LOxxx file.

Document ID : KB000010034
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

Can I have a sample JCL to create a new LOxxx file?

Environment:
z/OS
Instructions:

To create a new LOxxx file you can use the following sample JCL.

//LOUSER EXEC PGM=IEBGENER 
//SYSPRINT DD SYSOUT=* 
//SYSIN DD DUMMY 
//SYSUT2 DD DSN=your new ASM242.BKUP/ARCH.LOUSER,    --->>> select ARCH or BKUP
// UNIT=3390,VOL=SER=ASM009, 
// DCB=(RECFM=F,LRECL=80,BLKSIZE=80), 
// DISP=(,CATLG,DELETE), 
// SPACE=(TRK,(1)) 
//SYSUT1 DD * 
001 SCRTCH

 

*Note* You can also create a file that is 256 lrecl if you choose to do so.