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
 

 

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: 4648
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


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