IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

LISTC in REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Nileshkul

New User


Joined: 09 May 2016
Posts: 43
Location: India

PostPosted: Thu Jan 05, 2023 1:23 am
Reply with quote

Hi,

Apologies if this is already posted (I searched but not found). Need some help.

I have a REXX statement coded as below:

PARSE VALUE LISTC(DSN-NAME) WITH RC DSNCOUNT

When this REXX is run with DSN-NAME containing a GDG base - it returns number of GDG versions present in variable DSNCOUNT.

Now I want to know what all values can be extracted from above command. Specifically looking for any way to get record count if I give input specific GDG version in field DSN-NAME. Any details about all data available via similar to above LISTC usage in REXX would be really helpful.

Many Thanks - Nilesh
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 1650

PostPosted: Thu Jan 05, 2023 1:48 am
Reply with quote

If you plan to use LISTC as a function, you should have REXTOOLS installed in your environment.
read here about LISTC function from REXXTOOLS

If REXXTOOLS is not installed, then LISTC cannot be used in this manner.
Back to top
View user's profile Send private message
Nileshkul

New User


Joined: 09 May 2016
Posts: 43
Location: India

PostPosted: Thu Jan 05, 2023 4:55 am
Reply with quote

Thanks for quick response, this is very helpful info.

On similar note, is there any simple way to get record count in REXX. That would help a lot.

Many Thanks - Nilesh
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 1650

PostPosted: Thu Jan 05, 2023 6:09 pm
Reply with quote

Nileshkul wrote:
Thanks for quick response, this is very helpful info.

On similar note, is there any simple way to get record count in REXX. That would help a lot.

Many Thanks - Nilesh

No record count is kept by zOS for datasets / PDS members.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 1650

PostPosted: Thu Jan 05, 2023 9:35 pm
Reply with quote

sergeyken wrote:

No record count is kept by zOS for datasets / PDS members.

Some exception is: ISPF-provided statistics for PDS members.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts STEM usage in REXX CLIST & REXX 14
No new posts AI writing DFSORT, REXX codes.. All Other Mainframe Topics 3
No new posts I want to append a record in an exist... CLIST & REXX 17
No new posts Access library name in REXX CLIST & REXX 6
No new posts access library name in REXX CLIST & REXX 2
Search our Forums:

Back to Top