View previous topic :: View next topic |
Author |
Message |
Nabanita Das Beginner
Joined: 09 Nov 2005 Posts: 33 Topics: 10
|
Posted: Wed Nov 23, 2005 4:17 am Post subject: Want to capture the CPU time for each proc step |
|
|
Hi ,
I have around 40 jobs with same jobname. I have run them with different input files. Those input file names are having last qualifier as specific dates. I want to xdc particular procsteps of each job in different sequential files where we need to append the date with the xdc-ed dataset. I want this to be done for each job having same jobname with different job id.I also need to capture the CPU time and the elapsed time for all the procsteps for each job. I have gone thru the similar links but every where it talks about capturing only the last job having same jobnames.
Please guide me.
Nabanita |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
Nabanita Das Beginner
Joined: 09 Nov 2005 Posts: 33 Topics: 10
|
Posted: Wed Nov 23, 2005 7:16 am Post subject: |
|
|
I tried this and getting invalid bolcksize message when I try to view the output file.
For now would you please let me know whether it is possible to read all the jobs with same jobname from the spool and i need to extract the CPU time for the procsteps for each job and elapsed time for the whole job.
Thanks |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Nov 23, 2005 8:27 am Post subject: |
|
|
Quote: |
I tried this and getting invalid bolcksize message when I try to view the output file.
|
Nabanita Das,
Post the error messages so that we can help solve that error.
Quote: |
For now would you please let me know whether it is possible to read all the jobs with same jobname from the spool and i need to extract the CPU time for the procsteps for each job and elapsed time for the whole job.
|
The link posted by me *does* give you the results.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Wed Nov 23, 2005 9:44 am Post subject: |
|
|
Nabanita,
Quote: |
I tried this and getting invalid bolcksize message
|
You will get this invalid blocksize error when your file is empty and blocksize is set to zero. If the default blocksize is not set in your SMS dataclas / you don't have SMS in your shop, you will have to provide LRECL, RECFM and BLOCKSIZE all in your JCL. If you miss anything then they will be populated as zero which results in such error.
But When you write atleast one record to the file with blocksize zero, the blocksize is altered automatically depending on the LRECL.
Thanks,
Phantom |
|
Back to top |
|
 |
Nabanita Das Beginner
Joined: 09 Nov 2005 Posts: 33 Topics: 10
|
Posted: Fri Nov 25, 2005 4:03 am Post subject: |
|
|
Phantom,
This is the JCL I am using:
Code: |
//STEP010 EXEC PGM=IEFBR14
//IN1 DD DSN=&SYSUID..SPOOL.OUTPUT1,
// DISP=(MOD,DELETE,DELETE),
// UNIT=SYSDA,
// AVGREC=K,
// SPACE=(0,(0))
//
//STEP020 EXEC PGM=IEFBR14
//DD1 DD DSN=&SYSUID..SPOOL.OUTPUT1,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(1,1),RLSE),
// DCB=(RECFM=FBA,LRECL=133,BLKSIZE=0)
//
//*
//R010 EXEC PGM=SDSF,
//ISFOUT DD SYSOUT=*
//ISFIN DD *
OWNER USERID
PREFIX JOBNAME
ST
FIND TSTA116F
++S
PRINT ODSN 'TSTA116.SPOOL.OUTPUT1'
PRINT
PRINT CLOSE
END
/*
|
You are correct that I am not getting any record written in the output file. Please guide me.
Thanks and Regards,
Nabanita |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Fri Nov 25, 2005 9:27 am Post subject: |
|
|
you are only executing the step to create the data set. // by itself ends the job stream. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Sat Nov 26, 2005 8:32 am Post subject: |
|
|
Nabanita Das,
Apart from the change semigeezer mentioned you also need to change the following
Code: |
OWNER USERID <=== userid should be your t-id
PREFIX JOBNAME <=== jobname should be your real jobname
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Sat Nov 26, 2005 9:56 am Post subject: |
|
|
Nabanita,
Code: |
//DD1 DD DSN=&SYSUID..SPOOL.OUTPUT1,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(1,1),RLSE),
// DCB=(RECFM=FBA,LRECL=133,BLKSIZE=0)
|
One more suggestion. Do not code BLKSIZE=0 in your JCL. Better omit that parameter - JCL will decide the optimum Blocksize if you omit it.
As I said earlier, When you override BLKSIZE=0, JCL retains this value until some data is loaded to the file. An "Empty Dataset" error is more meaningful and easy to debug rather than an "Invalid Blocksize". With this error, you may not realise that the output file is empty and you will searching everywhere to find out the cause.
Thanks,
Phantom |
|
Back to top |
|
 |
|
|