The JCL for using the CA ADS Batch runtime system (ADSBATCH) to execute an application is shown below.
Sample z/OS JCL Under Central Version ADSBATCH (z/OS)
//ADSBATCH EXEC PGM=ADSBATCH,REGION=1024K,parm=parameter //STEPLIB DD DSN=idms.dba.loadlib,DISP=SHR // DSN=idms.loadlib,DISP=SHR //IDMSSNAP DD SYSOUT=A //sysctl DD DSN=idms.sysctl,DISP=SHR //adsloga DD DSN=log.file,DISP=OLD //file.descriptions //SYSLST DD SYSOUT=A //SYSIDMS DD * DMCL=dmcl-name DICTNAME=dictionary-name Other SYSIDMS parameters, as appropriate /* //SYSIPT DD * control statements /* //SYSUDUMP DD SYSOUT=A
|
parm=parameter |
an optional PARM parameter |
|
idms.dba.loadlib |
data set name of the load library containing the DMCL and database name table load modules |
|
idms.loadlib |
data set name of the load library containing the CA IDMS executable modules |
|
sysctl |
ddname of SYSCTL file |
|
idms.sysctl |
data set name of SYSCTL file |
|
adsloga |
ddname of the log file |
|
log.file |
data set name of the log file |
|
file.descriptions |
file descriptions of all input, output, and suspense files. The ddnames specified must match those specified in control statements or dialog definitions. |
Note: To get a snap dump when an abend occurs during a mapping operation, you must specify a DD statement with the name IDMSSNAP. The IDMSSNAP file stores the snap dump. an example of a mapping abend is when an input record that contains errors cannot be written to a suspense file because the MAXIMUM ERRORS for the dialog, which is specified at system generation or at runtime, has been exceeded.
Archive Log File
For an archive log file, specify a ddname of ARCLOGn, where n is 1 for the first archive file, 2 for the second archive file, and so forth, up to 9. The following sample JCL allocates the first archive log file:
//ARCLOG1 DD DSN=MEN.CC.RQE.ARCTAP1,DISP=(NEW,CATLG,DELETE), // UNIT=(TAPE,,DEFER),LABEL=(,SL),VOL=(,RETAIN), // DCB=(RECFM=VB,LRECL=320,BLKSIZE=12804)
Local mode
To execute ADSBATCH in local mode, the following steps are required:
//sysjrnl DD DSN=idms.tapejrnl,DISP=NEW,UNIT=tape //dictdb DD DSN=idms.dictdb,DISP=OLD //dloddb DD DSN=idms.dloddb,DISP=SHR //dmsgdb DD DSN=idms.dmsgdb,DISP=SHR //dlogdb DD DSN=idms.dlogdb,DISP=SHR additional journal file assignments, as required
Note: Under local mode, if you are running a multi-level application which transfers control using a LINK command without the NOSAVE option, you must code the LOCKING=ON parameter in the SYSIDMS parameter file.
|
sysjrnl |
ddname of journal file |
|
idms.tapejrnl |
data set name of journal file |
|
tape |
symbolic device name of journal file |
|
dictdb |
ddname of data dictionary |
|
idms.dictdb |
data set name of data dictionary |
|
dloddb |
ddname of data dictionary load area |
|
idms.dloddb |
data set name of data dictionary load area |
|
dmsgdb |
ddname of data dictionary message area |
|
idms.dmsgdb |
data set name of data dictionary message area |
|
dlogdb |
ddname of data dictionary log area |
|
idms.dlogdb |
data set name of data dictionary log area |
Sample z/VSE JCL Under Central Version ADSBATCH (z/VSE)
// DLBL SYSCTL,'idms.sysctl', 1999/365,SD // DLBL ciln,'idms.cilib' // EXTENT ,nnnnnn // LIBDEF *,SEARCH=(ciln),TEMP // DLBL adsloga,'log.file' // EXTENT sysnnn,VOLSER,,,start-track,end-track // ASSGN sysnnn,DISK,VOL=VOLSER,SHR // DLBL SYSIDMS,'#SYSIPT' // file.descriptions // EXEC IDMSFILE,SIZE=(AUTO,128K) SYSIDMS control statements IDMSFILE control statements ADSBATCH control statements DIALOG control statements
|
idms.sysctl |
data set name of SYSCTL file |
|
ciln |
filename of core-image library |
|
idms.cilib |
file-id of DC/UCF core-image library |
|
nnnnnn |
volume serial number |
|
adsloga |
filename of the log file |
|
log.file |
file-id of the log file |
|
sysnnn |
logical unit of the device on which the log file is located |
|
start-track |
starting track of the log file data set |
|
end-track |
ending track of the log file data set |
|
file.descriptions |
file descriptions of all input, output, and suspense files used in the application. Filenames specified must match those specified in control statements. |
|
SYSIDMS control statements |
control statements used by SYSIDMS to describe physical runtime environments as described in CA IDMS Common Facilities Guide—Volume 2. |
|
IDMSFILE control statements |
control statements used by IDMSFILE to describe the characteristics of the input, output, suspense, and log files used in the application, as described in z/VSE File Characteristics Program. This must include the 'RUN PROGRAM ADSBATCH' card. |
|
DIALOG control statements |
control statements required if any of the dialogs to be executed have an input map with the 'SYSIPT' label. |
|
ADSBATCH control statements |
control statements used by ADSBATCH to establish the runtime environment. |
What to Consider
A /* must follow each SYSIPT file. If an abend occurs during a file mapping operation, the snap dump is written automatically to SYSLST.
Local Mode
To execute ADSBATCH in local mode, the following steps are required:
// DLBL dictdb,'idms.dictdb',,DA // EXTENT sys005,nnnnnn // ASSGN sys005,DISK,VOL=nnnnnn,SHR // DLBL dloddb,'idms.dloddb',,DA // EXTENT sys017,nnnnnn // ASSGN sys017,DISK,VOL=nnnnnn,SHR // DLBL dmsgdb,'idms.dmsgdb',,DA // EXTENT sys016,nnnnnn // ASSGN sys016,DISK,VOL=nnnnnn,SHR // DLBL dlogdb,'idms.dlogdb',,DA // EXTENT sys019,nnnnnn // ASSGN sys019,DISK,VOL=nnnnnn,SHR // TLBL sysjrnl,'idms.tapejrnl',,nnnnnn,,f // ASSGN sys009,TAPE,VOL=nnnnnn additional journal file assignments, as required
|
dictdb |
filename of data dictionary |
|
idms.dictdb |
file-id of data dictionary |
|
sys005 |
logical unit assignment for data dictionary |
|
nnnnnn |
volume serial number |
|
dloddb |
filename of data dictionary load area |
|
idms.dloddb |
file-id of data dictionary load area |
|
sys017 |
logical unit assignment for data dictionary load area |
|
dmsgdb |
filename of data dictionary message area |
|
idms.dmsgdb |
file-id of data dictionary message area |
|
sys016 |
logical unit assignment for data dictionary message area |
|
dlogdb |
filename of data dictionary log area |
|
idms.dlogdb |
file-id of data dictionary log area |
|
sys019 |
logical unit assignment for data dictionary log area |
|
sysjrnl |
filename of tape journal file |
|
idms.tapejrnl |
file-id of tape journal file |
|
f |
file number of tape journal file |
|
sys009 |
logical unit assignment for tape journal file |
Local Mode
To execute ADSBATCH in local mode, the following steps are required:
/ADD-FILE-LINK L-NAME=dictdb,F-NAME=idms.appldict.dictdb,SHARED-UPD=*YES /ADD-FILE-LINK L-NAME=dloddb,F-NAME=idms.appldict.dloddb,SHARED-UPD=*YES /ADD-FILE-LINK L-NAME=dcmsg,F-NAME=idms.sysmsg.ddldcmsg,SHARED-UPD=*YES /ADD-FILE-LINK L-NAME=sysjrnl,F-NAME=idms.tapejrnl additional user database file assignments additional journal file assignments, as required
|
dictdb |
linkname of data dictionary file |
|
idms.appldict.dictdb |
filename of data dictionary file |
|
dloddb |
linkname of data dictionary load area file |
|
idms.appldict.dloddb |
filename of data dictionary load area file |
|
dcmsg |
linkname of data dictionary message area file |
|
idms.sysmsg.ddldcmsg |
filename of data dictionary message area file |
|
sysjrnl |
linkname of tape journal file |
|
idms.tapejrnl |
filename of tape journal file |
|
Copyright © 2013 CA.
All rights reserved.
|
|