JCL Requirements and Examples

This section describes the job control information required to run ADACHK on the z/OS operating system and shows examples of the job stream.


Requirements to Run ADACHK JCL

Data Set DD Name Storage More Information
Data set containing blocks to print. If you are running an ADACHK print function (such as ADACHK PLOGPRINT, ADACHK SORTPRINT, or ADACHK ASSOPRINT), include the corresponding data set specification in the job for the run. For information about which data sets to specify for each ADACHK function, read Disk Accesses by Utility and Function DDASSORn
DDDATARn
DDWORKR1
DDWORKR4
DDTEMPR1
DDSORTRn
DDCLOGRn
DDPLOGRn
DDDSIMR1
disk
disk
disk
disk
disk
disk
disk
disk
disk
Associator
Data Storage
Work

Temp
Sort
Multiple command log
Multiple protection log
DSIM data set
Associator DDASSORn or DDASSOnn disk  
Data Storage DDDATARn or DDDATAnn disk  
Sort work data sets DDSORTR1 or DDSORTR2   Used by the ACCHECK, CHECK, DSCHECK, and VALIDATE utility functions only when SORTTYPE=INTERNAL (the default) is specified and when the amount of data to be sorted exceeds the space declared by the LWP parameter in these utility function runs.
ADARUN parameters DDCARD reader Operations
ADACHK parameters DDKARTE reader  
ADARUN messages DDPRINT printer Messages and Codes
ADACHK messages DDDRUCK printer Messages and Codes

ADACHK JCL Examples

This section provides samples of z/OS ADACHK JCL:

Example Checking the Entire Database

//ADACHKC   JOB
//*
//*   ADACHK: CHECK
//*      Check of entire database
//*
//CHK       EXEC PGM=ADARUN
//STEPLIB   DD   DISP=SHR,DSN=ADABAS.ADAvrs.LOAD    <=== ADABAS LOAD
//*
//DDASSOR1  DD   DISP=SHR,DSN=EXAMPLE.DBYYYYY.ASSOR1 <=== ASSO
//DDDATAR1  DD   DISP=SHR,DSN=EXAMPLE.DBYYYYY.DATAR1 <=== DATA
//DDDRUCK   DD   SYSOUT=X
//DDPRINT   DD   SYSOUT=X
//SYSUDUMP  DD   SYSOUT=X
//DDCARD    DD   *
ADARUN PROG=ADACHK,SVC=XXX,DEVICE=3390,DBID=YYYYY
/*
//DDKARTE   DD   *
ADACHK CHECK
/*
//

Example Specifying Sort Data Sets

//ADACHKS   JOB
//*
//*   ADACHK: Execute ADACHK CHECK specifying sort datasets
//*           to be used in the event that LWP is insufficient.
//*
//CHK       EXEC PGM=ADARUN
//STEPLIB   DD   DISP=SHR,DSN=ADABAS.ADAvrs.LOAD    <=== ADABAS LOAD
//*
//DDASSOR1  DD   DISP=SHR,DSN=EXAMPLE.DBYYYYY.ASSOR1 <=== ASSO
//DDDATAR1  DD   DISP=SHR,DSN=EXAMPLE.DBYYYYY.DATAR1 <=== DATA
//DDSORTR1  DD   DISP=NEW,DSN=EXAMPLE.SORTR1,SPACE=(CYL,(100,500))
//DDSORTR2  DD   DISP=NEW,DSN=EXAMPLE.SORTR2,SPACE=(CYL,(100,500))
//DDDRUCK   DD   SYSOUT=X
//DDPRINT   DD   SYSOUT=X
//SYSUDUMP  DD   SYSOUT=X
//DDCARD    DD   *
ADARUN PROG=ADACHK,SVC=XXX,DEVICE=3390,DBID=YYYYY
/*
//DDKARTE   DD   *
ADACHK CHECK LWP=256000
/*
//

Example of ADACHK Print Functions

//ADACHKP   JOB
//*
//*   ADACHK: PRINT GCB followed by PPTPRINT and ASSO and DATA
//*      prints of various RABNs
//*
//CHK       EXEC PGM=ADARUN
//STEPLIB   DD   DISP=SHR,DSN=ADABAS.ADAvrs.LOAD    <=== ADABAS LOAD
//*
//DDASSOR1  DD   DISP=SHR,DSN=EXAMPLE.DBYYYYY.ASSOR1 <=== ASSO
//DDDATAR1  DD   DISP=SHR,DSN=EXAMPLE.DBYYYYY.DATAR1 <=== DATA
//DDDRUCK   DD   SYSOUT=X
//DDPRINT   DD   SYSOUT=X
//SYSUDUMP  DD   SYSOUT=X
//DDCARD    DD   *
ADARUN PROG=ADACHK,SVC=XXX,DEVICE=3390,DBID=YYYYY
/*
//DDKARTE   DD   *
ADACHK GCBPRINT
ADACHK PPTPRINT
ADACHK ASSOPRINT RABN=1000-1002
ADACHK ASSOPRINT RABN=2006
ADACHK DATAPRINT RABN=25006-25007
ADACHK DATAPRINT RABN=17000-17999
/*
//

Example of ADACHK JCL Running Both Print and Check Functions

//ADACHKV   JOB
//*
//*   ADACHK: Execute multiple print and check functions
//*
//*
//CHK       EXEC PGM=ADARUN
//STEPLIB   DD   DISP=SHR,DSN=ADABAS.ADAvrs.LOAD    <=== ADABAS LOAD
//*
//DDASSOR1  DD   DISP=SHR,DSN=EXAMPLE.DBYYYYY.ASSOR1 <=== ASSO
//DDDATAR1  DD   DISP=SHR,DSN=EXAMPLE.DBYYYYY.DATAR1 <=== DATA
//DDDRUCK   DD   SYSOUT=X
//DDPRINT   DD   SYSOUT=X
//SYSUDUMP  DD   SYSOUT=X
//DDCARD    DD   *
ADARUN PROG=ADACHK,SVC=XXX,DEVICE=3390,DBID=YYYYY
/*
//DDKARTE   DD   *
ADACHK ICHECK
ADACHK DSCHECK FILE=1,2
ADACHK DSCHECK FILE=17
ADACHK VALIDATE FILE=3
ADACHK ACCHECK
ADACHK CHECK FILE=21
ADACHK FSTPRINT
ADACHK FCBPRINT FILE=1
/*
//