Page 1 of 1

How to execute the particular steps as our requirement?

PostPosted: Fri Jun 18, 2010 10:58 am
by ramesh4mainframes
Hi,

Recently my friend attended for CSC interview, they asked one question regarding..........

There is a 4 steps first i wanna execute 3 steps after 3 minutes i wanna execute 4th one. How its possible can you let me know?

Re: How to execute the particular steps as our requirement?

PostPosted: Fri Jun 18, 2010 5:17 pm
by Robert Sample
First of all, this is not a good use of resources -- it is wasteful to the extreme. Second, there is no way in JCL to do this. You cannot implement delays in jobs. You could write a program that basically waits for the desired time but you are tying up an initiator, CPU, memory, address space, and so forth for however long the delay is -- as I said, extremely wasteful. Third, in a production environment you would split off the fourth step into a separate job and schedule it to run 3 minutes and the first job.

Re: How to execute the particular steps as our requirement?

PostPosted: Mon Jun 21, 2010 1:42 pm
by ramesh4mainframes
Robert,

Some of my friends told me there is a parameter delay(). By using that we can delay the execution. I don't have any awareness on this one, i think this parameter is available in CICS not in JCL. Right?



Thanks,
RamS

Re: How to execute the particular steps as our requirement?

PostPosted: Mon Jun 21, 2010 5:00 pm
by Robert Sample
CICS allows you to schedule a TASK, not a JOB or STEP, to execute at a particular time of day or after a given interval of time. However, there is no mechanism within a job to do the same and many sites expressly forbid delays in a job due to the wasted resources required.