How to execute the particular steps as our requirement?



How to execute the particular steps as our requirement?

Postby ramesh4mainframes » Fri Jun 18, 2010 10:58 am

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?
Thanks,
RamS
ramesh4mainframes
 
Posts: 32
Joined: Mon Jun 07, 2010 3:58 pm
Location: Hyderabad
Has thanked: 0 time
Been thanked: 0 time

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

Postby Robert Sample » Fri Jun 18, 2010 5:17 pm

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.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

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

Postby ramesh4mainframes » Mon Jun 21, 2010 1:42 pm

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
Thanks,
RamS
ramesh4mainframes
 
Posts: 32
Joined: Mon Jun 07, 2010 3:58 pm
Location: Hyderabad
Has thanked: 0 time
Been thanked: 0 time

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

Postby Robert Sample » Mon Jun 21, 2010 5:00 pm

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.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to Interview Questions

 


  • Related topics
    Replies
    Views
    Last post