Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8631
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 attchmvs from rexx subroutine that re... harisukumaran CLIST & REXX 1 Fri Jan 19, 2018 5:29 am
No new posts Can we create REXX ouput in an Excel ... upendrasri CLIST & REXX 3 Wed Jan 17, 2018 8:19 pm
No new posts Where to get sample for processing RM... vice_versa PL/I & Assembler 2 Tue Jan 16, 2018 2:03 pm
No new posts VSAM dataset not found abdulrafi JCL & VSAM 5 Fri Jan 12, 2018 11:19 am
No new posts Need to obtain VTOC information via R... djeffbland CLIST & REXX 10 Thu Jan 11, 2018 4:13 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us