IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SMF from REXX with ISPF to do some configuration


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rameshvs
Currently Banned

New User


Joined: 10 Aug 2007
Posts: 30
Location: atlanta

PostPosted: Wed Oct 17, 2007 6:01 am
Reply with quote

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

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Wed Oct 17, 2007 6:11 am
Reply with quote

I wouldn't think so, I always thought that SMF was a fairly tight format of specific systen runtime statistics......
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Oct 17, 2007 7:30 am
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Oct 17, 2007 10:22 pm
Reply with quote

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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Oct 17, 2007 11:51 pm
Reply with quote

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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Oct 18, 2007 12:06 am
Reply with quote

Use [URL] BBCode for External Links

file 522,

has a sample on how to write user smf records
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top