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
 

 

JCL return code in REXX

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

New User


Joined: 21 Nov 2009
Posts: 6
Location: Chennai

PostPosted: Sat Nov 21, 2009 3:29 pm    Post subject: JCL return code in REXX
Reply with quote

HI,
Can anyone please help me out in finding the MAXCC value of the JCL submitted through a REXX. means, the REXX submits a JCL and it has to wait for its return code to process further. Please provide a sample code.
Thank you.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sat Nov 21, 2009 4:25 pm    Post subject: Re: JCL return code in REXX
Reply with quote

Pallavi Bhat wrote:
Please provide a sample code.

Point 1 - DO NOT ask for code without showing any effort of your own, unless you are willing to pay for it. My rate is 750 euro per day or part thereof for tested and documented code. This is a HELP forum, not a DO IT FOR ME forum.

Point 2 - This has been discussed quite a few times and the forum does come with a search facility.

Point 3 - The general concensus is that you DO NOT pause a process to wait for another to finish. You plan and implement a correct solution. Unless of course that your employers are happy with you wasting resources and work time.

Click HERE to see what you could have found by yourself.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Sat Nov 21, 2009 10:11 pm    Post subject: Reply to: JCL return code in REXX
Reply with quote

Expat, I agree that TSO user should not submit job and wait for completion, especially for long running tasks (say, something running for more than 5 seconds of elapsed time).

But there are plenty of utilities that run quickly. In those instances, I do not submit a job, but from rexx, I allocate the files required and call the utility program directly.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sat Nov 21, 2009 10:58 pm    Post subject:
Reply with quote

Pedro, yes I also do that where possible, but as the OP has told us absolutely nothing about the whole process (as seems to be the norm rather than the exception), it may not be safe to advise this as there may be tapes involved.

In the link I provided above, we got to post 6 of the thread before we actually discovered that the submitted batch job also populated the file which was earlier said it only allocated.

Getting information from the posters is like pulling teeth ................ but then again, have you seen how much dentists charge these days icon_biggrin.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sat Nov 21, 2009 11:10 pm    Post subject: Reply to: JCL return code in REXX
Reply with quote

Quote:
have you seen how much dentists charge these days

I wish it was a joke ...
have you seen how much plumbers charge these days icon_sad.gif
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun Nov 22, 2009 9:55 am    Post subject: Reply to: JCL return code in REXX
Reply with quote

Repeating a reply to the same type of question recently:
Quote:
At least with the terminal locked, nothing else like this could get any resources to waste. . .

d
Back to top
View user's profile Send private message
Huzefa

New User


Joined: 05 Dec 2006
Posts: 85
Location: Bangalore

PostPosted: Tue Nov 24, 2009 4:51 pm    Post subject:
Reply with quote

try this one pallavi. let me know what you got.

RC=ISFCALLS("ON")
ISFPREFIX='JOBID*'
ADDRESS SDSF "ISFEXEC ST"
ISFCOLS= "JNAME JOBID RETCODE"
COLDTL=WORD(ISFCOLS,1)
DO IX=1 TO ISFROWS
DO JX=1 TO WORDS(ISFCOLS)
COL=WORD(ISFCOLS,JX)
END
If JOBID.IX = 'JOBID' THEN SAY RETCODE.IX
END
RC=ISFCALLS("OFF")
Back to top
View user's profile Send private message
Pallavi Bhat

New User


Joined: 21 Nov 2009
Posts: 6
Location: Chennai

PostPosted: Thu Nov 26, 2009 6:46 pm    Post subject: Reply to: JCL return code in REXX
Reply with quote

Thank you icon_smile.gif
I am facing this error msg 'IRX0043I Error running JCLMAXCC, line 19: Routine not found,' i guess the routine is not supported by my mainframe system. Is there any other way?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Nov 26, 2009 7:09 pm    Post subject:
Reply with quote

Pallavi,

what do you have for step/job-lib?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 26, 2009 7:13 pm    Post subject:
Reply with quote

Not even with my psychic powers can I see line 19.

Errrrrrrrrrrrrrrrrr, wouldn't care to actually post some code would you.
Error on line 19 is about as good as saying it didn't work.

Have a think about what you post. If you do want help then think about what people will need to see to be able to help you icon_rolleyes.gif

Also, is this foreground or batch, if batch we also need to see the JCL
Back to top
View user's profile Send private message
Pallavi Bhat

New User


Joined: 21 Nov 2009
Posts: 6
Location: Chennai

PostPosted: Fri Nov 27, 2009 6:52 pm    Post subject: Reply to: JCL return code in REXX
Reply with quote

I am very sorry as i forgot to mention the routine name. it's ISFCALLS. we use OSDA as spool. Could you please tell me the similar ISFCALLS
routine used in OSDA?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Nov 27, 2009 7:09 pm    Post subject:
Reply with quote

Quote:
we use OSDA as spool

Do you really mean that you use a product called OSDA to access the spool, or is it actually a replacement for the JES spool.

Who markets this tool.
Back to top
View user's profile Send private message
Pallavi Bhat

New User


Joined: 21 Nov 2009
Posts: 6
Location: Chennai

PostPosted: Fri Nov 27, 2009 7:38 pm    Post subject:
Reply with quote

The spool is JES3.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Sat Nov 28, 2009 12:28 am    Post subject:
Reply with quote

This is why you need to give as much useful information in your question as possible. You have people chasing around for answers that can't possibly work on your system. You are running JES3 and trying to use SDSF calls. SDSF only supports JES2. In future, please supply as much relevant information as possible. As you can see, people on this board are very frustrated at having to guess what people are trying to ask. It is OK to not know what to ask -- that is why you are asking -- but having messages that refer to line numbers and not showing the source, having basic system information (JES2 vs JES3) and not revealing it, and using uncommon acronymns (OSDA? Google doesn't give a clue) is not a good way to get answers. Help us to help you.

And in this case, heed the design warnings. Having a foreground program wait for a batch job is generally bad practice -- what if your job doesn't start for an hour or two?
Back to top
View user's profile Send private message
Pallavi Bhat

New User


Joined: 21 Nov 2009
Posts: 6
Location: Chennai

PostPosted: Sat Nov 28, 2009 4:06 pm    Post subject: Reply to: JCL return code in REXX
Reply with quote

True. Thank you. I am sorry for posting my question in a bad way.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun Nov 29, 2009 3:18 am    Post subject:
Reply with quote

Hello,

Quote:
I am sorry for posting my question in a bad way.
Suggest you also be concerned that what you want to do is not a good thing to do. . . No matter how it is asked.

What you have said you want to do (submit a job and wait so that the maxcc can be checked when the run completes) is not acceptable on most systems. . .

If you clearly explain what you are really trying to do (which business requirement), someone may have a suggestion.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Mon Nov 30, 2009 8:38 pm    Post subject: Reply to: JCL return code in REXX
Reply with quote

Quote:
I am sorry for posting my question in a bad way.

It is not just your question, but some people have asked you questions and you do not answer them. For those trying to provide help, it is frustrating that you do not provide responses.h
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
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts DFHWS2LS return value divated CICS 4 Mon Nov 07, 2016 5:44 pm


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