Hi, Does CA-Endevor has a Utility that can return the number of members in a Endevor controlled PDS ? If none, i appreciate suggestions. Thanks.
If you have PDSMAN installed you can do a VERIFY of one PDS or several.
Partial output report from a PDSMAN VERIFY:
FCO110I VALIDATING PDS OUTDD=IN VOL=PRM222 DSN=aaaaaaaa.bbbbbbbb.cccccccc
FCO160U MEMBERS 237 TOTAL 237 IN-PLACE 0 MOVED
In the output report of the VERIFY you will see the PDS name and the number of members in that PDS.
The output report of the VERIFY can be searched with a REXX going after what is important to you, like the PDS name and number of members.
Dan's method below is way better!
See also the REXX statement LISTDSI. It can obtain virtually any attribute of a dataset. Here is simple example showing number of members....
myDSN ='WALJO11.REXX' RCODE = LISTDSI("'"myDSN"'" RECALL DIRECTORY); say myDSN 'has' SYSMEMBERS 'members'