Previous Topic: Example JCL (Output to Tape) - Native Key SequenceNext Topic: Sample Report:  BACKUP Data Area - Native Key Sequence


Example JCL (Output to Disk) - Native Key Sequence

The following shows the command to backup the data area DEM in database 001 to the output data set, OUT1 on disk. Output the data in Native Key sequence and in compressed form.

Note: Use the following as a guide to prepare your JCL. The JCL statements are for example only. Lowercase letters in a statement indicate a value you must supply. Code all statements to your site and installation standards.

 * $$ JOB ...           See the previous note and JCL Requirements.
 * $$ LST ...
 // JOB name
 // EXEC PROC=procname  Whether you use PROCs or LIBDEFs, see JCL Requirements.
 // ASSGN SYSnnn,devicetype,VOL=volser,SHR
 // DLBL CXX,'cxx',,DA                             Directory data set
 // EXTENT SYSnnn,volser
 // DLBL IXX001,'db001.index',,DA                  IXX for DBID 1
 // EXTENT SYSnnn,volser
 // DLBL DEM001,'db001.dem',,DA                    Area DEM in DBID 1
 // EXTENT SYSnnn,volser
 // DLBL OUT1,'dembkup',n,SD                       Output data
 // EXTENT SYSnnn,volser,1,0,strk,ntrks
 // EXEC DBUTLTY,SIZE=750K
          BACKUP   AREA=DEM,DBID=1,DEVICE=DISK,DTFNAME=OUT1
 /*
 /&
 * $$ EOJ