Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

JCL that will accomplish Wait utility

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
programmer4

New User


Joined: 15 Mar 2006
Posts: 3

PostPosted: Wed Mar 15, 2006 8:24 pm    Post subject: JCL that will accomplish Wait utility
Reply with quote

I have 2 jobs that are submitted together, jobs A and B. I need job B to wait at least 2 minutes before executing code. I want to add a new step in job B that will accomplish this. I do not want to create a new program, looking for some kind of JCL that will accomplish this. Any help would be great. Thanks!
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Mar 15, 2006 8:38 pm    Post subject: Re: wait utility
Reply with quote

Use the Unix "sleep" command:

Code:

//STEP0001 EXEC PGM=AOPBATCH,PARM='sh /bin/sleep 120'     
//STDOUT   DD   SYSOUT=*                                 
//STDERR   DD   SYSOUT=*                                 
//STDIN    DD   DUMMY                                   
Back to top
View user's profile Send private message
programmer4

New User


Joined: 15 Mar 2006
Posts: 3

PostPosted: Wed Mar 15, 2006 8:50 pm    Post subject:
Reply with quote

Got the following error -

The following messages pertain to the invocation command run-time options. The run-time option SH was an invalid run-time option or is not supported in this release of Language Environment.

??
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Mar 15, 2006 9:23 pm    Post subject: Re: wait utility
Reply with quote

Try just:
Code:

//STEP0001 EXEC PGM=AOPBATCH,PARM='sleep 120'     
//STDOUT   DD   SYSOUT=*                                 
//STDERR   DD   SYSOUT=*                                 
//STDIN    DD   DUMMY                                   
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 288
Location: Basel, Switzerland

PostPosted: Thu Mar 16, 2006 6:25 pm    Post subject:
Reply with quote

hy,

supplementally,
contact your system programmer, there is also
an assembly doing this... --> SLEEP as well.
or you write your own assembler program...

martin9
Back to top
View user's profile Send private message
programmer4

New User


Joined: 15 Mar 2006
Posts: 3

PostPosted: Thu Mar 16, 2006 8:36 pm    Post subject: Re: wait utility
Reply with quote

I was able to find an assembler that does what I want to do. Thanks!
Back to top
View user's profile Send private message
donevin

New User


Joined: 07 Jun 2005
Posts: 70
Location: South Africa

PostPosted: Fri Mar 17, 2006 5:27 pm    Post subject:
Reply with quote

hi programmer4

Would you perhaps show us the solution too?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 - TERMINATE utility vasanthz DB2 5 Mon May 15, 2017 11:49 pm
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
This topic is locked: you cannot edit posts or make replies. Job to wait and continue based on reply yugendran COBOL Programming 5 Wed Oct 05, 2016 1:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us