On Thu, 13 Feb 2014 10:55:27 +0100, Massimo Biancucci wrote: >Hi all, > >we started analyzing SMF62 to trace which A.S. use VSAM datasets and their >intent (Read or Update). > >To do the task we analyze the SMF62MC1 flag (zOS 1.13). > >So, a Cobol program does the following: > >...... > SELECT ARCAPPU ASSIGN TO TITAR02U > ORGANIZATION IS INDEXED > ACCESS MODE IS DYNAMIC > RECORD KEY IS APP-KEY > FILE STATUS IS STATUS-ARCAPPU. >...... > OPEN I-O ARCAPPU. >...... > >Here the SMF62: > > 1 2 3 4 5 >POSN 12345678901234567890123456789012345678901234567890 > > 1 CHAR ....=}....MVSAJTIMAN19...S....SYSPROD h...ICFUCAT. > ZONE 13007D0102DEECDECDCDFF007E0102EEEDDDC48000CCCECCE4 > NUMR EE04E0143F4521139415190482143F2827964080009364313B > +---------+---------+---------+---------+---------+ > 51 CHAR APPLJP0 SCATF1JTIP.VSB > ZONE CDDDDDF44444444444444444444444444444ECCECFDECD4EEC > NUMR 1773170000000000000000000000000000002313611397B522 > +---------+---------+---------+---------+---------+ > 101 CHAR W0M.APPOGGIO.TITOLIXX ..LRPRD3....PA > ZONE EFD4CDDDCCCD4ECEDDCEE44444444444444400DDDDCF3320DC > NUMR 604B17767796B3936397700000000000000001397943000F71 > +---------+---------+---------+---------+---------+ > 151 CHAR XXBW01PAPRBW01UEFVS000..=......... > ZONE EECEFFDCDDCEFFECCEEFFF007B0102*9*000 > NUMR 772601717926014565200004EF143F*A*000 > +---------+---------+---------+---------+---------+ > >So the SMF62MC1 is x'9A' = 1001 1010 in binary. > >According to the manual: > >1 = Record is identified by a KEY (it matches with Organization is indexed >from Cobol) >0 = RBA access NO >0 = CI access NO >1 = Sequential Processing (Access mode in Dynamic from Cobol) >1 = Direct Processing (Access mode in Dynamic from Cobol) >0 = Input Processing NO (???) >1 = Output Processing YES >0 = User Supplied Buffer Space NO > >The program does all of READ, START, WRITE and REWRITE. > >So, about the "Input Processing" flag, I'm not able to pair the SMF record >with the behaviour (SMF64 states the read and update were done) of the >program. >In the past, if I well remember, I did some tests and at the I-O OPEN the >flags seemed to be OK. > >What's wrong in my understanding ? > >Thanks a lot for your support. >Massimo >
The program can do a READ even though the MACRF=IN bit is not set. In the description of the MACRF option of the ACB macro in DFSMS Macro Instructions for Data Sets, it says: "If you specify OUT and want merely to retrieve some records and also update, delete, or insert others, you need not also specify IN." http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2D580/1.2.4 Bill ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
