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 

Want to capture the CPU time for each proc step

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Nabanita Das
Beginner


Joined: 09 Nov 2005
Posts: 33
Topics: 10

PostPosted: Wed Nov 23, 2005 4:17 am    Post subject: Want to capture the CPU time for each proc step Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Nov 23, 2005 6:26 am    Post subject: Reply with quote

Nabanita Das,

Did you try this apporach?

http://www.mvsforums.com/helpboards/viewtopic.php?p=1548#1548

Hope this helps...

Cheers

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


Joined: 09 Nov 2005
Posts: 33
Topics: 10

PostPosted: Wed Nov 23, 2005 7:16 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Nov 23, 2005 8:27 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Nov 23, 2005 9:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Nabanita Das
Beginner


Joined: 09 Nov 2005
Posts: 33
Topics: 10

PostPosted: Fri Nov 25, 2005 4:03 am    Post subject: Reply with quote

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
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Fri Nov 25, 2005 9:27 am    Post subject: Reply with quote

you are only executing the step to create the data set. // by itself ends the job stream.
Back to top
View user's profile Send private message Visit poster's website
kolusu
Site Admin
Site Admin


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

PostPosted: Sat Nov 26, 2005 8:32 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Sat Nov 26, 2005 9:56 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) 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