If you are going to read any VSAM SMF file, active or inactive, you don't have to read the full file - you can (MXG DOES) stop when you encounter a block that starts with 'SMFEOFM', as that is the logical end of file marker. All subsequent blocks in that VSAM file are also 'SMFEOFM' populated.
Barry Herbert W. Barry Merrill, PhD President-Programmer Merrill Consultants MXG Software 10717 Cromwell Drive Dallas, TX 75229-5112 214 351 1966 tel 214 350 3694 fax http://www.mxg.com [email protected] MXG Support: [email protected] MXG Admin: [email protected] Standard Answers: http://www.mxg.com/administration What's Supported: http://www.mxg.com/changes -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Elardus Engelbrecht Sent: Monday, February 25, 2013 9:05 AM To: [email protected] Subject: Re: Reading Active SMF dataset Jose ADAUTO Ribeiro wrote: >For now, I need to know the better way to read the SMF dataset. If you mean you want to READ an ACTIVE and IN USE the VSAM SMF datasets, yes, it is possible. A third party tool do it for 'just in time' analysis' without waiting for the switch from ACTIVE to DUMP status. >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. You may need an APF authorized program while watching out for any ENQ issues and keeping track of the RBA. This is what I know from that 3th party tool. I have RTFM to see what macros [1] are there, but either I missed it or they're just not available. Groete / Greetings Elardus Engelrecht [1] - Not those SMF macros where you WRITE out SMF records. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
