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: 4649
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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am


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