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
 

 

job through rexx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
theslaveofgod

New User


Joined: 16 Feb 2006
Posts: 5

PostPosted: Thu Mar 09, 2006 5:33 pm    Post subject: job through rexx
Reply with quote

hi,
I have submitted a job through rexx. The problem is that the rexx programe must wait and recieve the return code of that submitted job and then execute other operations in it. How to achieve this condition?? icon_cry.gif icon_exclaim.gif
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: Thu Mar 09, 2006 5:56 pm    Post subject: Re: job through rexx
Reply with quote

Does your REXX exec trap the jobname and jobid (i.e. job number) of the job that was submitted?
Back to top
View user's profile Send private message
theslaveofgod

New User


Joined: 16 Feb 2006
Posts: 5

PostPosted: Thu Mar 09, 2006 6:39 pm    Post subject: ya
Reply with quote

ya i am executing that job with a separate id which is trapped by the rexx
Back to top
View user's profile Send private message
amitava
Warnings : 1

Active User


Joined: 30 Oct 2005
Posts: 186
Location: India

PostPosted: Thu Mar 09, 2006 6:42 pm    Post subject:
Reply with quote

Hey theslaveofgod,
Please check the forum again. I have already posted the topic about how to control the JOB flow. Its very simple. And if u want the detail coding I will send u later
Back to top
View user's profile Send private message
martin9

Active User


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

PostPosted: Thu Mar 09, 2006 6:49 pm    Post subject:
Reply with quote

instead of submitting a job,
call the program directly under rexx,
allocate all neccessary datasets first
using the tso-services (i.e. address tso),
then you will also receive a return code,
without leaving your main program...

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

New User


Joined: 16 Feb 2006
Posts: 5

PostPosted: Thu Mar 09, 2006 7:56 pm    Post subject: but how to recieve the return code
Reply with quote

hi martin
i am actually running the jcl in the method what you have said but the problem is how to recieve the return codes. The rexx doesnt wait for the execution of jcl. it ends before the job get submitted and return codes are produced
Back to top
View user's profile Send private message
martin9

Active User


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

PostPosted: Thu Mar 09, 2006 8:50 pm    Post subject:
Reply with quote

hy,
no no no, you did not understand.
first, i assume you have a jcl with one step and you
want further processing depending on the result (i.e. RC=0).
therefore don't start any jcl, instead ...

rexx code...
.
.
address tso
alloc dd(sysin) ...
alloc dd(sysprint) ... and so on...
call *(pgm)
if rc = 0 then further processing
.
.
exit 0

you do all thru rexx!
if you have a jcl with several steps, we should consider
any other solution, for example run everything in batch.

martin9
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm


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