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 

SMF TYPE 30

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics
View previous topic :: View next topic  
Author Message
raj051076
Beginner


Joined: 05 Dec 2002
Posts: 64
Topics: 21

PostPosted: Sun Jul 17, 2016 1:32 am    Post subject: SMF TYPE 30 Reply with quote

I am trying to create a report showing list of jobs and their start and end time. I am able to write a rexx which creating a report by picking up the below names
SMF30JBN - jobname
SMF30PGM - pgmname
SMF30STM-stepname
SMF30STN - stepnumber
SMF30CLS - jobclass
SMF30SIT - job start time
SMF30RET - job end time

For job start and end, I am always getting 00:00:00 as the time. Is it due to some parameter is not turned on in SMF and hence it is not recording it. Also are these the correct fields to be picked up for job start and end time
_________________
Rajib
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 11813
Topics: 74
Location: San Jose

PostPosted: Sun Jul 17, 2016 9:14 am    Post subject: Reply with quote

raj051076,


What subtype of sm record 30 are you extractin this data? You need to get it from sub type 5
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
raj051076
Beginner


Joined: 05 Dec 2002
Posts: 64
Topics: 21

PostPosted: Sun Jul 17, 2016 9:28 am    Post subject: Reply with quote

I am extracting it from subtype 4. If I use 5, pgmname, stepname and stepnumber are getting blank
_________________
Rajib
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 11813
Topics: 74
Location: San Jose

PostPosted: Sun Jul 17, 2016 12:17 pm    Post subject: Reply with quote

raj051076 wrote:
I am extracting it from subtype 4. If I use 5, pgmname, stepname and stepnumber are getting blank


Subtype 5 will not have PGMNAME and Stepname/number in them. Either you need to merge Subtype 4 and 5(by matching the SMF30DTE SMF30TME) to get what you are looking for or you can have Jobname (SMF30JBN) and Job Number(SMF30JNM) from subtype 5
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
raj051076
Beginner


Joined: 05 Dec 2002
Posts: 64
Topics: 21

PostPosted: Mon Jul 18, 2016 6:36 am    Post subject: Reply with quote

Unfortunately subtype 5 also has both SMF30SIT and SMF30RST blank. Spent a lot of time today to debug the issue. The offset for SMF30SIT is 267 and SMF30RST is 283. I displayed the offsets, those are blanks. I am not sure if I am making any mistake while taking the dump:(
_________________
Rajib
Back to top
View user's profile Send private message
raj051076
Beginner


Joined: 05 Dec 2002
Posts: 64
Topics: 21

PostPosted: Mon Jul 18, 2016 8:20 am    Post subject: Reply with quote

I was able to get the time for TYPE 5. Not sure if that is the right place to get the reader start time and end time
_________________
Rajib
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 11813
Topics: 74
Location: San Jose

PostPosted: Mon Jul 18, 2016 10:36 am    Post subject: Reply with quote

raj051076 wrote:
Unfortunately subtype 5 also has both SMF30SIT and SMF30RST blank. Spent a lot of time today to debug the issue. The offset for SMF30SIT is 267 and SMF30RST is 283. I displayed the offsets, those are blanks. I am not sure if I am making any mistake while taking the dump:(


Raj051076,

I am not sure as to how you arrived at the offsets as being 267 for SMF30SIT. You do realize that it is part of variable section and you need to account for the variable offset which is stored in SMF30IOF and SMF30ILN consists the length of the variable section. So unless you accounted for that you are always going to get wrong results.

BTW SM30 is the most changed SMF record and you need to make sure you are reading the appropriate level of SMF record in lieu with your operating system.
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
raj051076
Beginner


Joined: 05 Dec 2002
Posts: 64
Topics: 21

PostPosted: Mon Jul 18, 2016 11:48 pm    Post subject: Reply with quote

Yes Kolusu, this offsets are considering the offset from IOF
_________________
Rajib
Back to top
View user's profile Send private message
raj051076
Beginner


Joined: 05 Dec 2002
Posts: 64
Topics: 21

PostPosted: Thu Jul 21, 2016 10:50 am    Post subject: Reply with quote

I have solved this, the problem was that I did not notice that I was truncating the record. Instead of 32756, I was taking it as 256 while converting the VBS to FB.
_________________
Rajib
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 -> Other Technical Topics 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