Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
SMF from REXX with ISPF to do some configuration

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: SMF from REXX with ISPF to do some configuration
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: 2150
Location: At my coffee table

PostPosted: Wed Oct 17, 2007 6:11 am    Post subject:
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

Site Director


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

PostPosted: Wed Oct 17, 2007 7:30 am    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Oct 17, 2007 10:22 pm    Post subject:
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

Site Director


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

PostPosted: Wed Oct 17, 2007 11:51 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Thu Oct 18, 2007 12:06 am    Post subject: Reply to: SMF from REXX with ISPF to do some configuration
Reply with quote

www.cbttape.org

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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts Conditional highlighting of rows in I... packerm CLIST & REXX 2 Thu Sep 21, 2017 6:50 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us