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: 2023
Location: USA

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: 2023
Location: USA

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: 2023
Location: USA

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 Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top