Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rexx + jcl 1

Status
Not open for further replies.

swosty8879

Technical User
Dec 28, 2003
2
US
Hi all ,

I m submitting a jcl/job with my rexx,and the output
dataset of the job is used down the line.
Need a way to make the rexx wait till the job completes.
Used a wait function to do that ,but need an alternative to it.
Is there a command to check whether the particular job has completed and then proceed?

Thanks,
Swosty
 
This has been discussed several times before on this and other forums.

The short-and-sweet is: foreground applications should never wait on background applications.

Don't do this. Forget about it. Find another way, even if it means redesigning the application.

Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
Hello swosty8879,

You can use the COND code in your jcl, if the previous step is ok then submit your next JCL.

Regards,

Tzu
 
I would suggest you incorporate your JCL into your REXX unless it is exceeding CPU intensive. Also, if the rest of the REXX is not run interactively, you should add it as a step to the submitted JCL - you can pass in parameters to the REXX easily if required.

With regards to Frank's reply, I do agree it is a bad practice, but if you need to it is possible, but I would only do it if you use a disabled wait program. Just wait, run SDSF in foreground, repeat etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top