View previous topic :: View next topic |
Author |
Message |
Rahull Beginner
Joined: 29 Jan 2004 Posts: 62 Topics: 19
|
Posted: Thu Oct 28, 2004 2:05 am Post subject: Need REXX Utility |
|
|
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 |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Oct 28, 2004 9:14 am Post subject: |
|
|
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 |
|
|
Bithead Advanced
Joined: 03 Jan 2003 Posts: 550 Topics: 23 Location: Michigan, USA
|
Posted: Thu Oct 28, 2004 10:25 am Post subject: |
|
|
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 |
|
|
Rahull Beginner
Joined: 29 Jan 2004 Posts: 62 Topics: 19
|
Posted: Thu Oct 28, 2004 11:58 pm Post subject: |
|
|
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 |
|
|
Bithead Advanced
Joined: 03 Jan 2003 Posts: 550 Topics: 23 Location: Michigan, USA
|
Posted: Fri Oct 29, 2004 8:28 am Post subject: |
|
|
Try LIST ID=$F51W5CR |
|
Back to top |
|
|
patnaik Beginner
Joined: 17 Jan 2004 Posts: 9 Topics: 5
|
Posted: Mon Dec 13, 2004 2:50 am Post subject: |
|
|
Hi,
Can anyone tell me how to calculate groupwise dataset utilization by useing rexx utility
Regards
Patnaik |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Mon Dec 13, 2004 6:38 am Post subject: |
|
|
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 |
|
|
patnaik Beginner
Joined: 17 Jan 2004 Posts: 9 Topics: 5
|
Posted: Sun Jan 09, 2005 9:50 am Post subject: |
|
|
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 |
|
|
|
|