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 find the number of records in VSAM file Using REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: How to find the number of records in VSAM file Using REXX
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: 2360
Location: Israel

PostPosted: Tue Aug 07, 2007 1:45 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Aug 07, 2007 2:21 pm    Post subject:
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    Post subject:
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    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
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 2 Wed Jul 26, 2017 9:11 pm
No new posts Passing data from REXX to C programme... chong.zhou All Other Mainframe Topics 0 Wed Jul 26, 2017 4:55 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm


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