|
View previous topic :: View next topic
|
| Author |
Message |
madlui56
New User
Joined: 08 Aug 2006 Posts: 61 Location: Philippines
|
|
|
|
How to know the number of records within a dataset(flatfile) without going inside nor just typing max down(m f8) on the command line?
Thanks. |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
To know the number of records "something" must "going inside"? The number of blocks might be found, but the number of records that would be read into a program, not. Space used is easily available externally, but number of records is not.
One easy way to find the number of records in a file is to use your sort product. If you search in the sort forum or even in this jcl section, you will find examples of getting a record count via sort.
I don't know a way to get a record count online without opening the file and "going inside". |
|
| Back to top |
|
 |
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
| Using FILEAID you can get the record count without opening the file. |
|
| Back to top |
|
 |
madlui56
New User
Joined: 08 Aug 2006 Posts: 61 Location: Philippines
|
|
|
|
Where specifically on fileaid or on what command?
Thanks. |
|
| Back to top |
|
 |
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
Option 3, and then 8
| Quote: |
| Interactive Utility |
give dataset name
and press enter |
|
| Back to top |
|
 |
Aaru
Senior Member

Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
| Back to top |
|
 |
madlui56
New User
Joined: 08 Aug 2006 Posts: 61 Location: Philippines
|
|
|
|
how about if it is on tape or mean tape files?
is is ok to use fileaid coz it is issuing a " file not on dasd message"
Thanks |
|
| Back to top |
|
 |
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
| Quote: |
| how about if it is on tape or mean tape files? |
Use SORT |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
When you post a question, you need to include the important information. Fileaid and other online tools typically do not process tapes.
Depending on which tape management system your organization uses, the record count may be available there - talk with your storage administration people. |
|
| Back to top |
|
 |
madlui56
New User
Joined: 08 Aug 2006 Posts: 61 Location: Philippines
|
|
|
|
| Thanks for the information guys.. |
|
| Back to top |
|
 |
|
|