Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to get the Maxcc of a job submitted through REXX?

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

New User


Joined: 23 Apr 2007
Posts: 2
Location: Chennai

PostPosted: Thu Apr 26, 2007 6:07 pm    Post subject: How to get the Maxcc of a job submitted through REXX?
Reply with quote

Hi,

I am submitting a job through REXX and i trapped the jobId and jobname using outtrap.

Is there any way to get the Maxcc of the job in REXX after the completion of job?

Can anybody help me about how to trap this information.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Thu Apr 26, 2007 6:13 pm    Post subject: Re: How to get the Maxcc of a job submitted through REXX?
Reply with quote

I would use a combination of the TSO commands STATUS and OUTPUT.

Then again, I would place this type of tracking information into the job itself.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Thu Apr 26, 2007 7:43 pm    Post subject:
Reply with quote

Have a look at this post. There is a REXX solution there.

O.
Back to top
View user's profile Send private message
BobbyM

New User


Joined: 23 Apr 2007
Posts: 2
Location: Chennai

PostPosted: Mon May 21, 2007 6:25 pm    Post subject: Re: How to get the Maxcc of a job submitted through REXX?
Reply with quote

I got another way to get the MaxCC recently and thought of sharing with you. Find below the code.

"DROPBUF"
QUEUE 'OWNER ' ID
QUEUE 'ST'
QUEUE 'PRE *'
QUEUE 'FILTER JOBID = ' JOBID
QUEUE 'ARRANGE MAX-RC A C'
"ALLOC FI(ISFIN) UNIT(SYSDA) NEW DELETE"
"ALLOC FI(ISFOUT) DA('"SDSFPROF"') SHR REUSE"
"EXECIO "QUEUED()" DISKW ISFIN (FINIS"
"ISPEXEC SELECT PGM(SDSF)" /* EXE
"FREE FI(ISFIN ISFOUT)"
"ALLOC DA('"SDSFPROF"') F("PROF") SHR REUSE"
"EXECIO * DISKR "PROF"(STEM INREC4."
"EXECIO 0 DISKR "PROF" (FINIS"
"FREE FILE("PROF")"

The Profile details will be written to a file(SDSFPROF). You can search for the word Max-Rc and and in the very next line you can read the Max-CC of the job.
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 Looping REXX - unable to interrupt RAVISANKAR07 CLIST & REXX 3 Wed Dec 06, 2017 1:08 pm
No new posts The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
This topic is locked: you cannot edit posts or make replies. Rexx to Grab ISMF Information. upendrasri All Other Mainframe Topics 16 Sun Nov 26, 2017 12:35 am
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 12 Sun Nov 19, 2017 7:59 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us