Page 2 of 2

Re: Jcl that counts the Number of members,

PostPosted: Fri Apr 11, 2008 5:31 pm
by fuuss
Is there a possibility to get the same result with a JCL without fileaid ?


Thanks in advance

Re: Jcl that counts the Number of members,

PostPosted: Sat Apr 12, 2008 12:01 am
by dick scherrer
Hello,

I'm confused. . .

Is there a possibility to get the same result with a JCL without fileaid
Unless i am mis-reading the topic, there is no fileaid solution posted. ..

Re: Jcl that counts the Number of members,

PostPosted: Mon Apr 14, 2008 11:05 am
by fuuss
Yeah right , at this point we have just a rexx solution but no JCL solution :-)

Re: Jcl that counts the Number of members,

PostPosted: Mon Apr 14, 2008 5:47 pm
by MrSpock
Well, you already know the basic process of how to get the member list. You can use utility programs (SORT, SAS, Easytrieve, etc.) to read the list and perform the counting function. What else do you need?

Re: Jcl that counts the Number of members,

PostPosted: Tue Apr 15, 2008 4:54 pm
by fuuss
This Info I needed :"SORT, SAS, Easytrieve" ok will check that out

thx

Re: Jcl that counts the Number of members,

PostPosted: Thu Jul 05, 2018 8:57 pm
by ForzaJuve
Hello,
If you want just to know the number of the all members, and you don't care about what it started, you can use this modified version of the script suggested previously

N=0
X=OUTTRAP(OUT.)
ADDRESS TSO "LISTDS "DSNNAME" MEMBERS"
X=OUTTRAP(OFF)
DO J = 1 TO OUT.0
   IF J > 6 THEN DO
         N = N+1
   END
END
SAY 'THE PDS' DSNNAME 'HAS ' N 'MEMBERS '
 

Re: Jcl that counts the Number of members,

PostPosted: Thu Jul 05, 2018 9:23 pm
by enrico-sorichetti
do You really think that TS might be still interested after 10 years ?
furthermore the solution posted does not satisfy the TS requirement -
filter according to some name pattern matching