View previous topic :: View next topic
|
Author |
Message |
arvindkamboj
New User
Joined: 09 Jul 2007 Posts: 2 Location: pune
|
|
|
|
Hi
I need a rexx program to find the nummer of records in a vsam file
i can use QUEUED for flat files
But what to use for KSDS files
Please help me to find out |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Invoke LISTCAT internally, then parse the output.
O. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Or attempt to use CSI
However, VSAM records are usually only updated when the cluster is closed, so if you have a cluster which is almost permanently open, to something like a CICS region, the statistics may be inaccurate.
You could try a VERIFY before the LISTCAT, but it may fail because the cluster is open. |
|
Back to top |
|
|
TizMe
New User
Joined: 05 Jan 2006 Posts: 72
|
|
|
|
Even if you successfully VERIFY, the output from a LISTCAT cannot be relied upon. If any VSAM updating program abends without closing the file these figures will be incorrect.
This is because the record counts in the catalog are only updated when the file is closed. |
|
Back to top |
|
|
|