Hello All.
I'm analyzing the SMF, but as you all know, the format is multiline.
Does someone know how to convert it to one line for each event?
This way I can use SQL and it would be easier to understand.
Thanks
SMF to one line for each event
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: SMF to one line for each event
I'm analyzing the SMF, but as you all know, the format is multiline.
please clarify what You mean by multiline , not a common term for MF datasets
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: SMF to one line for each event
You would be better off checking with your site support group to see if they are using MICS or MXG or another SMF analysis tool that accumulates the data for you. Not only are there multiple records that relate to a single event (such as the various type 30 records for a job), there are also single records that contain data on many things (such as disk pack data). It is not a simple task to properly decode the SMF records.
Re: SMF to one line for each event
Thanks enrico-sorichetti I'll try to explain myself.
When You look at an SMF file, what you see are events, but the SMF uses 4, 5 or more lines for each event. Something like this:
1 010.144 00:01:10 PROD STCRESPC STCGROUP 0 2 0 JOBID=(RESPCATU 10.144 00:00:00),USERDATA=(),OWNER=SITOAMP
USER BK CATALOGOS AUTH=(OPERATIONS),REASON=(SPECIAL/OPERATIONS)
SESSION=STARTED PROCEDURE,TOKEN STATUS=(
CREATED BY PRE 1.9 RACF CALL)
DATASET=TELMEX.CATALOG.SYSIN,GENPROF=TELMEX.CATALOG.**,VOLUME=SOPTE0,
LEVEL=00,INTENT
Instead... I am trying to convert this to only one line for each event, like in Excel.
1 010.144 00:01:10 PROD STCPROC STCGROUP JOBID=(RESPCATU USER BK CATALOGOS AUTH=(OPERATIONS),REASON=
2 010.144 00:01:11 PROD STCRESPC STCGROUP JOBID=(RESPCATU USER BK CATALOGOS AUTH=(OPERATIONS),REASON=
3 010.144 00:01:13 DES STCERSC STCGROUP JOBID=(RESPCATU USER BK CATALOGOS AUTH=(OPERATIONS),REASON=
Hope someone can help.
When You look at an SMF file, what you see are events, but the SMF uses 4, 5 or more lines for each event. Something like this:
1 010.144 00:01:10 PROD STCRESPC STCGROUP 0 2 0 JOBID=(RESPCATU 10.144 00:00:00),USERDATA=(),OWNER=SITOAMP
USER BK CATALOGOS AUTH=(OPERATIONS),REASON=(SPECIAL/OPERATIONS)
SESSION=STARTED PROCEDURE,TOKEN STATUS=(
CREATED BY PRE 1.9 RACF CALL)
DATASET=TELMEX.CATALOG.SYSIN,GENPROF=TELMEX.CATALOG.**,VOLUME=SOPTE0,
LEVEL=00,INTENT
Instead... I am trying to convert this to only one line for each event, like in Excel.
1 010.144 00:01:10 PROD STCPROC STCGROUP JOBID=(RESPCATU USER BK CATALOGOS AUTH=(OPERATIONS),REASON=
2 010.144 00:01:11 PROD STCRESPC STCGROUP JOBID=(RESPCATU USER BK CATALOGOS AUTH=(OPERATIONS),REASON=
3 010.144 00:01:13 DES STCERSC STCGROUP JOBID=(RESPCATU USER BK CATALOGOS AUTH=(OPERATIONS),REASON=
Hope someone can help.
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: SMF to one line for each event
Hello,
That looks more like "syslog" entries than smf data. . .
Most of the "raw" smf data is not displayable. . .
That looks more like "syslog" entries than smf data. . .
Most of the "raw" smf data is not displayable. . .
Hope this helps,
d.sch.
d.sch.
-
- Posts: 278
- Joined: Thu May 15, 2008 9:45 pm
- Skillset: MVS
MQ
ISPF - Referer: sister site
Re: SMF to one line for each event
There is a RACF utility (exit?) that can be used during SMF dumps to process records from RACF. Perhaps this a report out of that utility?
Regards,
Bill Dennis
Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
-
- Posts: 2
- Joined: Wed Jun 09, 2010 8:16 am
- Skillset: MVT,MFT,SVS,VM,MVS,ESA,zOS
COBOL,PL/I,FORTRAN,ASSEMBLER,JCL,SAS,REXX
Security,Banking,Project Management,Teaching
Performance,Capacity Planning,Analytic Modelling - Referer: Google
Re: SMF to one line for each event
Let's start over. What record or records are you trying to look at. If you have RACF you will probably want the 80,81 and 83 records. If you're using ACF2 you will use a record greater than 127 for that record type. For example we use TYPE 229. SMF is not event records per say. You are correct in saying they have several event per record, and you may find there are different types of data in the same record if you are trying to relate them to a relational model for a DB.
MXG is closest to what you are trying to do, using SAS to create tables of the records that are stored as SAS files. There are lots of utilities to use against SMF data, but you need to be more spacific in what your objective is before you can get much help with the details of how to get there.
By the way I parse about .75 TerraBytes of SMF per day for a bank. We have both ACF2 and RACF in multiple SYSPLEX's.
MXG is closest to what you are trying to do, using SAS to create tables of the records that are stored as SAS files. There are lots of utilities to use against SMF data, but you need to be more spacific in what your objective is before you can get much help with the details of how to get there.
By the way I parse about .75 TerraBytes of SMF per day for a bank. We have both ACF2 and RACF in multiple SYSPLEX's.

Re: SMF to one line for each event
Thanks to all for the answers.
Dick Scherrer: It is a real SMF register.. it is 8 Mb and it is only of 2 days.
Bill Dennis: I'm not sure what you meen with an EXIT? but I asked IBM people in México and as Robert Sambple sugested... they told me that I can use MICS or MXG.
The problem is that their expensive and I'm not sure we are going to use it that much.
Joe Babcock: It is an SMF 30 register.
I'm trying to find out the users that are trying to do things they are not permited... I meen people who are trying to UPDATE when they can only READ.
And maybe the users that just READ and for some reason they have permission to ALTER.
tHANKS AGAIN.
Dick Scherrer: It is a real SMF register.. it is 8 Mb and it is only of 2 days.
Bill Dennis: I'm not sure what you meen with an EXIT? but I asked IBM people in México and as Robert Sambple sugested... they told me that I can use MICS or MXG.
The problem is that their expensive and I'm not sure we are going to use it that much.
Joe Babcock: It is an SMF 30 register.
I'm trying to find out the users that are trying to do things they are not permited... I meen people who are trying to UPDATE when they can only READ.
And maybe the users that just READ and for some reason they have permission to ALTER.
tHANKS AGAIN.
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: SMF to one line for each event
8 MB in 2 days? Either your shop is so small as to be almost non-existent, or someone is extracting the data for you already. Typically SMF generates hundreds of megabytes to gigabytes per day.
Why are you even considering SMF? Wouldn't it make more sense to get a RACF (assuming that RACF is your security package) report giving what you want?
Why are you even considering SMF? Wouldn't it make more sense to get a RACF (assuming that RACF is your security package) report giving what you want?
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: SMF to one line for each event
Hello,
Sounds like you would be better served using other than SMF for what you want.
Not really. . . What you are trying to do is use some data that is no longer in SMF format. Even if you had something that would do what you want with the raw SMF data, it would not work for the "file" that was posted.I'm analyzing the SMF, but as you all know, the format is multiline.
There are people who only do an update every year or 2. . . They read all of the time, but only update for some extroardinary process. Suggest someone review everyone who has "alter" permission - there should be very few for production datasets.And maybe the users that just READ and for some reason they have permission to ALTER.
Sounds like you would be better served using other than SMF for what you want.
Hope this helps,
d.sch.
d.sch.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
comparte two fileds on the same line
by samb01 » Thu Mar 23, 2023 6:27 pm » in DFSORT/ICETOOL/ICEGENER - 2
- 1109
-
by samb01
View the latest post
Thu Mar 23, 2023 9:30 pm
-
-
-
REXX to Edit 3rd Line of all members in PDS
by shiitiizz » Thu Aug 13, 2020 5:21 pm » in CLIST & REXX - 3
- 3738
-
by Pedro
View the latest post
Fri Aug 14, 2020 3:50 am
-
-
-
FORMAT THE FILE SO ALL CHILD UNDER SAME PARENT IN ONE LINE
by azhar » Wed May 31, 2023 4:27 pm » in JCL - 1
- 1767
-
by sergeyken
View the latest post
Thu Jun 01, 2023 3:06 am
-
-
-
Problem in ISPF editor with automatic line break
by aprilgas » Tue Sep 24, 2024 3:24 pm » in TSO & ISPF - 8
- 3923
-
by aprilgas
View the latest post
Fri Sep 27, 2024 3:55 pm
-
-
-
ISPF Custom Line Edit macros do not work anymore
by harisukumaran » Thu Jun 27, 2024 4:42 am » in TSO & ISPF - 0
- 1265
-
by harisukumaran
View the latest post
Thu Jun 27, 2024 4:42 am
-