Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to read record count thru REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
amitrath

New User


Joined: 30 Apr 2004
Posts: 28
Location: Carmel, USA.

PostPosted: Mon Apr 03, 2006 8:31 pm    Post subject: How to read record count thru REXX
Reply with quote

Hello everyone,

Can anyone tell me how to get the record count of any dataset (whatever dataset type, including VSAM) using rexx. I do not want to open/read the dataset. Is there any variable (say in LISTDSI) where I can read this data.

No code required. Give me the key-word. Thanks in advance.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Mon Apr 03, 2006 8:36 pm    Post subject: Re: How to read record count thru REXX
Reply with quote

amitrath wrote:
Is there any variable (say in LISTDSI) where I can read this data.


Nope, unless the dataset is a PDS, in which case you can get the "size" value from the ISPF statistics of the member.
Back to top
View user's profile Send private message
amitrath

New User


Joined: 30 Apr 2004
Posts: 28
Location: Carmel, USA.

PostPosted: Mon Apr 03, 2006 11:59 pm    Post subject: Re: How to read record count thru REXX
Reply with quote

Thanks Superk for your prompt reply !

If you mean SPACE by 'size', then yes, we can get it from ISPF variables. But ISPF also shows the 'number of records' for any particular dataset in the panels (say =3.4). Is there any way I can find out where does this data come from? ISPF cannot be counting the lines. May be from some ISPF variable?

Thanks again.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Apr 04, 2006 2:24 am    Post subject: Re: How to read record count thru REXX
Reply with quote

amitrath wrote:
But ISPF also shows the 'number of records' for any particular dataset in the panels (say =3.4).


No, it doesn't.
Back to top
View user's profile Send private message
amitrath

New User


Joined: 30 Apr 2004
Posts: 28
Location: Carmel, USA.

PostPosted: Tue Apr 04, 2006 4:44 am    Post subject: Re: How to read record count thru REXX
Reply with quote

May be you are right. ISPF displays the number of records only in case of PDS.

Can you please tell where does this data comes in case of a PDS?
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Apr 04, 2006 7:03 pm    Post subject: Re: How to read record count thru REXX
Reply with quote

All of that information is retained in the PDS directory.
Back to top
View user's profile Send private message
martin9

Active User


Joined: 01 Mar 2006
Posts: 287
Location: Basel, Switzerland

PostPosted: Tue Apr 04, 2006 7:39 pm    Post subject:
Reply with quote

hy amitrath,

for a ps-file, if you need the exact number of records,
you have to open and read it.

for a pds-file, with SYSDSN you can get the number of members included
in the pds-file SYSMEMBERS, there is a possibility with ispf statistics data, but this won't be available in any case. to be sure you can force the statistics
with ispf-service LMMSTATS...

martin9
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us