Use IDMSCVUP to Determine If an IDMS System is Active
Use the IDMSCVUP program to determine if an IDMS system is active.
The batch program IDMSCVUP determines whether an IDMS system is active or inactive and returns a code that either reflects that status or indicates a problem in accessing the file. You can use the program in a job step to conditionally execute subsequent steps based on system availability.
When run, IDMSCVUP returns one of the following codes:
- 0 -- The IDMS system is active
- 4 -- The IDMS system is inactive
- 8 -- An error occurred when accessing the file designated by the JCL SYSCTL DD
To detect that the IDMS system is running, the job must be run on the same LPAR as the IDMS system.
JCL to execute IDMSCVUP
//ASM EXEC PGM=IDMSCVUP //SYSPRINT DD SYSOUT=* //STEPLIB DD DSN=idms.loadlib,DISP=SHR //SYSCTL DD DSN=sysctl.file,DISP=SHR //SYSOUT DD SYSOUT=* //
To conditionally bypass the execution of subsequent job steps, use the COND parameter in the steps.