Total number of member in a PDS



IBM's Command List programming language & Restructured Extended Executor

Total number of member in a PDS

Postby atodpquery » Thu Dec 18, 2008 9:24 am

Is there any function or system global variable to tell the total number of a pds?
atodpquery
 
Posts: 31
Joined: Sat Nov 15, 2008 3:40 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Total number of member in a PDS

Postby dick scherrer » Thu Dec 18, 2008 9:43 am

Hello,

Try this - i'm not connected, so i've not run a test. . .

/*>Rexx ------------------------------------------*/
lib='your.pds'                               
dsi_rc=listdsi("'"lib"'"     'directory' )       
say lib 'has' sysmembers                         
exit                                             


For more info:
http://publibz.boulder.ibm.com/cgi-bin/ ... SPTTSOLDSI
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Total number of member in a PDS

Postby atodpquery » Fri Dec 19, 2008 5:32 am

It works perfectly well. Thanks.
atodpquery
 
Posts: 31
Joined: Sat Nov 15, 2008 3:40 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Total number of member in a PDS

Postby dick scherrer » Fri Dec 19, 2008 7:18 am

You're welcome :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post