IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

JCL return code in REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 8796
Location: Welsh Wales

PostPosted: Sat Nov 21, 2009 4:25 pm
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

Global Moderator


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

PostPosted: Sat Nov 21, 2009 10:11 pm
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: 8796
Location: Welsh Wales

PostPosted: Sat Nov 21, 2009 10:58 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10888
Location: italy

PostPosted: Sat Nov 21, 2009 11:10 pm
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

Moderator Emeritus


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

PostPosted: Sun Nov 22, 2009 9:55 am
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: 83
Location: Bangalore

PostPosted: Tue Nov 24, 2009 4:51 pm
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
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
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: 8796
Location: Welsh Wales

PostPosted: Thu Nov 26, 2009 7:13 pm
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
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: 8796
Location: Welsh Wales

PostPosted: Fri Nov 27, 2009 7:09 pm
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
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: 400
Location: Mumbai

PostPosted: Sat Nov 28, 2009 12:28 am
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
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

Moderator Emeritus


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

PostPosted: Sun Nov 29, 2009 3:18 am
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

Global Moderator


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

PostPosted: Mon Nov 30, 2009 8:38 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts purge jobs with return code 0 and ret... JCL & VSAM 4
No new posts Run rexx with JCL Job CLIST & REXX 1
No new posts Run rexx in batch job CLIST & REXX 7
No new posts Does anyone know rexx for VSE CLIST & REXX 3
No new posts TSO ALLOC In REXX Needs Improvement JCL & VSAM 3
Search our Forums:

Back to Top