IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL that will accomplish Wait utility


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Wed Mar 15, 2006 8:38 pm
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
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

Global Moderator


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

PostPosted: Wed Mar 15, 2006 9:23 pm
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: 290
Location: Basel, Switzerland

PostPosted: Thu Mar 16, 2006 6:25 pm
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts REASON 00D70014 in load utility DB2 6
No new posts Wait for job rc CLIST & REXX 10
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts Any JCL or VSAM Utility to get number... JCL & VSAM 1
No new posts DATA SET LIST UTILITY screen TSO/ISPF 6
Search our Forums:

Back to Top