Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 4650
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: 290
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 Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts How to Use DebugTool CodeCoverage Uti... neo4u IBM Tools 0 Thu Jun 22, 2017 6:38 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts DB2 - TERMINATE utility vasanthz DB2 5 Mon May 15, 2017 11:49 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us