One of the CBT tape programs does exactly this -- it "finds" the current SMF 
dataset and reads it. It's probably in assembler and of course the CBT tape was 
open source before open source was cool.

If you can't find it post back here and I will figure out which one I have in 
mind. Maybe 523?

Charles

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Jose ADAUTO Ribeiro
Sent: Saturday, February 23, 2013 10:41 AM
To: [email protected]
Subject: Reading Active SMF dataset

Hi, 
 
Could someone give me some help: I would like to know if it is possible to get 
in some control block (or via some MACRO/API program) the name of the active 
SMF dataset (and the alternates too). I will do this in an assembler program.
 
In addition I would like to know the best way to read, after its dynamic 
allocation, the SMF file to select some types of records. I did a test program 
that read a pre-allocated SMF data set using VSAM macros OPEN/GET with RPL 
OPTCD=(CNV,SEQ), but I don't know if there is another better way.
 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to