Jcl that counts the Number of members,



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Re: Jcl that counts the Number of members,

Postby fuuss » Fri Apr 11, 2008 5:31 pm

Is there a possibility to get the same result with a JCL without fileaid ?


Thanks in advance
fuuss
 
Posts: 40
Joined: Wed Mar 19, 2008 3:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Jcl that counts the Number of members,

Postby dick scherrer » Sat Apr 12, 2008 12:01 am

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. ..
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: Jcl that counts the Number of members,

Postby fuuss » Mon Apr 14, 2008 11:05 am

Yeah right , at this point we have just a rexx solution but no JCL solution :-)
fuuss
 
Posts: 40
Joined: Wed Mar 19, 2008 3:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Jcl that counts the Number of members,

Postby MrSpock » Mon Apr 14, 2008 5:47 pm

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?
User avatar
MrSpock
Global moderator
 
Posts: 808
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: Jcl that counts the Number of members,

Postby fuuss » Tue Apr 15, 2008 4:54 pm

This Info I needed :"SORT, SAS, Easytrieve" ok will check that out

thx
fuuss
 
Posts: 40
Joined: Wed Mar 19, 2008 3:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Jcl that counts the Number of members,

Postby ForzaJuve » Thu Jul 05, 2018 8:57 pm

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 '
 
ForzaJuve
 
Posts: 1
Joined: Thu Jul 05, 2018 8:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Jcl that counts the Number of members,

Postby enrico-sorichetti » Thu Jul 05, 2018 9:23 pm

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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Previous

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post