View previous topic :: View next topic
|
Author |
Message |
Pallavi Bhat
New User
Joined: 21 Nov 2009 Posts: 6 Location: Chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
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 |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Huzefa
New User
Joined: 05 Dec 2006 Posts: 83 Location: Bangalore
|
|
|
|
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 |
|
|
Pallavi Bhat
New User
Joined: 21 Nov 2009 Posts: 6 Location: Chennai
|
|
|
|
Thank you
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Pallavi,
what do you have for step/job-lib? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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
Also, is this foreground or batch, if batch we also need to see the JCL |
|
Back to top |
|
|
Pallavi Bhat
New User
Joined: 21 Nov 2009 Posts: 6 Location: Chennai
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
Pallavi Bhat
New User
Joined: 21 Nov 2009 Posts: 6 Location: Chennai
|
|
|
|
The spool is JES3. |
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
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 |
|
|
Pallavi Bhat
New User
Joined: 21 Nov 2009 Posts: 6 Location: Chennai
|
|
|
|
True. Thank you. I am sorry for posting my question in a bad way. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
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 |
|
|
|