TEST job need to start after 20 min after submitted manually

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

spawar4
Member
Posts: 21
Joined: Sun Oct 25, 2009 10:35 am

TEST job need to start after 20 min after submitted manually

Post by spawar4 » Thu Sep 15, 2011 6:38 am

I need start my TEST job start execution after 20 min after submitted manually.

Please suggest any time parameter i need to mention in my test job.

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Thu Sep 15, 2011 12:37 pm

Anyways you're NOT talking about automation then why don't SUBmit it after 20-minutes at first place. If by some means, it's possible - what would you do for those 20-minutes, keeping the initiators unnecessarily busy?
Regards,
Anuj

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Re: TEST job need to start after 20 min after submitted manu

Post by Anuj Dhawan » Thu Sep 15, 2011 12:45 pm

spawar4 wrote:Please suggest any time parameter i need to mention in my test job.
And TIME parameter won't do what you think it will. The TIME parameter sets a limit on the amount of CPU time a job/step can consume - it does not decide/have-no-control on time when the Job will actually run.
Regards,
Anuj

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Thu Sep 15, 2011 7:44 pm

Why does someone believe there is some magic in 20 minutes? What if the interval is not long enough?

Why not add a step to the first job to submit the second job thru the internal reader or even combine the 2?

As you have not explained why this is being considered, we cannot offer much in the way of suggestions.

Well-managed systems do not permit this. . .
Have a good one

spawar4
Member
Posts: 21
Joined: Sun Oct 25, 2009 10:35 am

Post by spawar4 » Thu Sep 15, 2011 8:05 pm

I have two mainframe test job and 1st will trigger my orclae test process and it will take arround 20 min to complete and after this i need to run my 2nd mainrfame job. so for automation I am going to submit 2nd MF test job thru first one and it need to be start after oracle process, so I need to hold second job for 20 min. then it will continue with further process.

Please help if you have any diff idea for this automation

spawar4
Member
Posts: 21
Joined: Sun Oct 25, 2009 10:35 am

Post by spawar4 » Mon Sep 19, 2011 6:27 pm

Can anyone help me to handle the above case.

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Post by MrSpock » Mon Sep 19, 2011 7:48 pm

I though your previous post WAS your solution. Here's how I understand your process:

1. Submit a test job to run your Oracle test process. This job could run for up to 20 minutes.
2. After the test process completes, this job will submit the second test job.
3. The second test job will run. What this job does you haven't told us yet.

spawar4
Member
Posts: 21
Joined: Sun Oct 25, 2009 10:35 am

Post by spawar4 » Mon Sep 19, 2011 8:33 pm

Job A will trigger test job B and one oracle test process. But job B should start after completion of oracle process, so need to hold this job B for 20-25 min and then it will check trigger file from oracle and accordinlgy it will complete the further MF process.

Please suggest how i will hold job B till the oracle process complete. hope now my question is clear.

Thanks in advance !!

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Mon Sep 19, 2011 8:50 pm

does job a, after intiating the oracle process end, or does it wait for a response from the oracle process?

if it ends, then have the oracle process do a batch sub thru xmit.

if not, as a last step in job a, submit job b.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

spawar4
Member
Posts: 21
Joined: Sun Oct 25, 2009 10:35 am

Post by spawar4 » Mon Sep 19, 2011 10:16 pm

Job A will trigger test job B and one oracle test process, same time
But job B should start after completion of oracle process, so need to hold this job B processing for 20-25 min and it should start after oracle finished.
then Job B will complete the further MF process.

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Mon Sep 19, 2011 10:26 pm

Just run them serially. . . A - Oracle - B

There is no reason to do something convoluted that will be more difficult to maintain and will waste resources.

spawar4
Member
Posts: 21
Joined: Sun Oct 25, 2009 10:35 am

Post by spawar4 » Mon Sep 19, 2011 10:37 pm

I am planning to automate this process i don't want to run this all one by one manually,
so I will submit only job A and then it will trigger job B and oracle process. I knew how to trigger job B and oracle process, I need help to hold the job B processing till oracle process get completed.

Please let me know any command is there for holding job for 20-25 min and then it will continue from STEP01.

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Mon Sep 19, 2011 11:54 pm

i don't want to run this all one by one manually,
If you do as i suggested, it will not be manual. . .

Run only 1 job that runs a, then runs the oracle process, then runs b.

Or - run a having it submit the oracle process thru the internal reader. When the oracle process successfully completes, the oracle process could submit b thru the internal reader.

There is no good reason to insist on the method you propose.
Have a good one

spawar4
Member
Posts: 21
Joined: Sun Oct 25, 2009 10:35 am

Post by spawar4 » Tue Sep 20, 2011 12:43 am

so i can hold test job B using some command and I have to submit it manully only?

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Tue Sep 20, 2011 3:46 am

i chose my avatar because of threads link this one.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others