View previous topic :: View next topic
|
Author |
Message |
programmer4
New User
Joined: 15 Mar 2006 Posts: 3
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
programmer4
New User
Joined: 15 Mar 2006 Posts: 3
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Try just:
Code: |
//STEP0001 EXEC PGM=AOPBATCH,PARM='sleep 120'
//STDOUT DD SYSOUT=*
//STDERR DD SYSOUT=*
//STDIN DD DUMMY
|
|
|
Back to top |
|
|
martin9
Active User
Joined: 01 Mar 2006 Posts: 290 Location: Basel, Switzerland
|
|
|
|
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 |
|
|
programmer4
New User
Joined: 15 Mar 2006 Posts: 3
|
|
|
|
I was able to find an assembler that does what I want to do. Thanks! |
|
Back to top |
|
|
donevin
New User
Joined: 07 Jun 2005 Posts: 70 Location: South Africa
|
|
|
|
hi programmer4
Would you perhaps show us the solution too? |
|
Back to top |
|
|
|