MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need REXX Utility

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Rahull
Beginner


Joined: 29 Jan 2004
Posts: 62
Topics: 19

PostPosted: Thu Oct 28, 2004 2:05 am    Post subject: Need REXX Utility Reply with quote

Hi,

Problem Description :: We have a list of 100 jobs with us. All we need is to prepare a report which list the start and end time of each job during production run.

This we have to do selectively also i.e. user will give the date range and we need to find the above for all the 100 jobs.

Right now, I am going to SAR and opening each job individually which is taking lot of time.

Please give some solution for it.

Thanks in advance

Rahul
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Oct 28, 2004 9:14 am    Post subject: Reply with quote

If it were me, I would run a job everytime the JES console log (SYSLOG) rolls to the backup dataset. This job would extract all of the batch job run date, and run start and end times, and place the information into an accumulator (i.e. GDG) dataset.

Alternatively, you could extract the same information from the system's SMF records.

Most shops I've worked in already do this.

Then, ad-hoc queries would be relatively easy to perform.
Back to top
View user's profile Send private message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Thu Oct 28, 2004 10:25 am    Post subject: Reply with quote

I would use SARBCH with the the command /LIST ID=<your job name> to get a list of what is on SAR. I would then either manually select then GEN and SEQ that fit the date criteria or write a program to do it. I would use SARBCH with the /LOAD ID= parameter, specifying the correct GEN= and SEQ= and would use a utility to extract the HASP373 and HASP395 messages (Start and stop). I would then extract the times from that.
Back to top
View user's profile Send private message
Rahull
Beginner


Joined: 29 Jan 2004
Posts: 62
Topics: 19

PostPosted: Thu Oct 28, 2004 11:58 pm    Post subject: Reply with quote

Hi,

Please clarify my doubt.
Code:

//STEP1 EXEC PGM=SARBCH
//SYSPRINT DD SYSOUT=*
//REPORT DD DSN=T925.BANSALR.SAR,
// DISP=(,CATLG,DELETE),
// DCB=(LRECL=300,BLKSIZE=0,RECFM=FBA)
//SYSIN DD *
/DBASE NAME=SARSTC.SERVICE
/LIST GEN=* ID=$F51W5CR*
/*



The above JCL is not listing all the columns of SAR.

Following is the list of columns it displays ::
ID JOBNAME JOBID GEN SEQ ARC DATE ARC TIME PRT DATE PRT TIME LOC LINES PAGES BLOCKS FORMNAME.

I am looking for the column "READ DATE/TIME".

Please advice.
Back to top
View user's profile Send private message
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Fri Oct 29, 2004 8:28 am    Post subject: Reply with quote

Try LIST ID=$F51W5CR
Back to top
View user's profile Send private message
patnaik
Beginner


Joined: 17 Jan 2004
Posts: 9
Topics: 5

PostPosted: Mon Dec 13, 2004 2:50 am    Post subject: Reply with quote

Hi,

Can anyone tell me how to calculate groupwise dataset utilization by useing rexx utility

Regards

Patnaik
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Mon Dec 13, 2004 6:38 am    Post subject: Reply with quote

patnaik,

Can you elaborate your request ? Do you want calculate the space usage for all datasets with a particular High level qualifier?

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
patnaik
Beginner


Joined: 17 Jan 2004
Posts: 9
Topics: 5

PostPosted: Sun Jan 09, 2005 9:50 am    Post subject: Reply with quote

Hi kolusu,

Under one racf group there may be many userid, so i want to calculate the space usage for all datasets for a that particular group, Here userid is highlevel qualifier.



Regards,

Patnaik
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group