That was my first question too before I started using those services but those 
variables are available once the PDS is open, so a little clunky I guess, but 
first you need to do an LMINIT,then LMOPEN, LMMSTATS 

I'll see if I have any good examples, I know Mark has used these services in 
some of his downloadables I think 




Carmen Vitullo 

----- Original Message -----

From: "Charles Mills" <[email protected]> 
To: [email protected] 
Sent: Wednesday, January 16, 2019 1:58:25 PM 
Subject: Re: Is there a C or LE service to retrieve ISPF statistics? 

Okay, where the heck are the meanings and formats of dataid, ver1, etc. 
documented? 

Also, I want to *retrieve* (not set) those values. I see LMMSTATS documented as 
"set and store ISPF statistics." Can I use LMMSTATS to retrieve existing 
statistics. I don't want to change them. Or is there a different function (that 
I do not see)? 

Charles 


-----Original Message----- 
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Carmen Vitullo 
Sent: Wednesday, January 16, 2019 5:25 AM 
To: [email protected] 
Subject: Re: Is there a C or LE service to retrieve ISPF statistics? 

Agree, and if I'm reading the OP's query correctly he's asking for ISPF stats 
not PDS member or directory info, correct? 
the LM services part of ISPF, are available in many languages, including C 
so for example ; 

retcode = isplink("LMMSTATS", dataid, mbrname, ver1, mod1, cdate, mdate, 
mtime, csize, isize, mrecs, userid, "DELETE", cdate4, 
mdate4); 


OR 


strcpy(buffer,"LMMSTATS DATAID(dataid) MEMBER(mbrname) VERSION(ver1) 
MODLEVEL(mod1) CREATED(cdate) MODDATE(mdate) 
MODTIME(mtime) CURSIZE(csize) INITSIZE(isize) 
MODRECS(mrecs) USER(userid) DELETE 
CREATED4(cdate4) MODDATE4(mdate4)"); 
buflen = strlen(buffer); 
retcode = ispexec(buflen, buffer); 

---------------------------------------------------------------------- 
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

Reply via email to