View previous topic :: View next topic
|
Author |
Message |
amitrath
New User
Joined: 30 Apr 2004 Posts: 28 Location: Carmel, USA.
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
amitrath
New User
Joined: 30 Apr 2004 Posts: 28 Location: Carmel, USA.
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
amitrath
New User
Joined: 30 Apr 2004 Posts: 28 Location: Carmel, USA.
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
All of that information is retained in the PDS directory. |
|
Back to top |
|
|
martin9
Active User
Joined: 01 Mar 2006 Posts: 290 Location: Basel, Switzerland
|
|
|
|
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 |
|
|
|