View previous topic :: View next topic
|
Author |
Message |
rameshvs Currently Banned New User
Joined: 10 Aug 2007 Posts: 30 Location: atlanta
|
|
|
|
Hi All,
We are using REXX with ISPF to do some configuration things for our application. We need to some logging though and are thinking if there is a way we can use SMF for that purpose. I mean use native funcctions to log information and let the OS to handle the maintenance.
Is it possible at all? Any help on this will be really helpful.
Thanks all for your time!
Ramesh. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
I wouldn't think so, I always thought that SMF was a fairly tight format of specific systen runtime statistics...... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
There is such a thing as user-defined smf records.
Quote: |
Record types 0 through 127, which are SMF-formatted records, are reserved for IBM products.
Record types 128 through 255 are available for user-written records. |
This and more than i ever want to know is here:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2G261/5.10?SHELF=EZ2ZO10G&DT=20060125090238
On many systems, additional SMF use is discouraged due to the additional system overhead and space needed.
Before going very far, i'd suggest that you have a green light to add customization to SMF, the resources needed will not be a problem, and that your application be permitted to run in the proper storage protect key or be APF-authorized (many/most apps are not permitted to do this). |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
No, you can not process raw SMF records using REXX because they are usually defined as RECFM=VBS which (If I remember correctly) REXX does not process.
You will need to preprocess the records to convert them to VB or FB before REXX can handle them, I have always used DFSORT for this,and where possible extracting only the fields that I knew could be extracted to lower resource usage in the REXX program. Also, I have only done this with fairly simply structured records like 14/15.
If you have SAS installed at your shop, this is a much better option, even more so if you have MXG as well, because MXG comes with all of the code required to break down the SMF records. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Unless i misunderstood, the interest was in creating smf records from within this app rather than reading them from the raw smf data. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
|