Is there any way to set a delay before a step of JCL, to start that step’s execution after a minute?
This is required in two cases:
ADABAS Database to be fully up, as it takes few seconds for database to come up fully, if not job abends with Response code 148
To have a PLOG datasets consolidation job after online backup(after it switches PLOG), so that it wont abend with error "NOT ALL REQUIRED PLOG BLOCKS WERE FOUND ON THE INPUT "
Adding a somewhat arbitrary pause may not be the best solution in many cases. Consider things like including automatic restart processes, if possible, in the program getting the 148 error. Alternatively, consider splitting the job into 2 jobs where an automation solution such as OPSMVS or IBM SA does not allow the 2nd job to run until it knows adabas is up.
If the intent is to wait for an ADABAS db to be available, rather than invoking NATURAL to perform some “wait/sleep” step could you not rather code a NATURAL/ADABAS IO against a file in the db to verify availability and use TERMINATE with status codes to return conditions to JCL for jcl/job flow control?
(presumably your friendly ADA DBA can help you with a utility that checks the status of the specific database to avoid having to fire up a NATURAL session)