IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to find the number of records in VSAM file Using REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
arvindkamboj

New User


Joined: 09 Jul 2007
Posts: 2
Location: pune

PostPosted: Tue Aug 07, 2007 1:11 pm
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Aug 07, 2007 1:45 pm
Reply with quote

Invoke LISTCAT internally, then parse the output.

O.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Aug 07, 2007 2:21 pm
Reply with quote

Or attempt to use CSI icon_eek.gif

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
View user's profile Send private message
TizMe

New User


Joined: 05 Jan 2006
Posts: 72

PostPosted: Wed Aug 08, 2007 12:11 pm
Reply with quote

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
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 FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Running REXX through JOB CLIST & REXX 13
Search our Forums:

Back to Top