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 get the record count from a huge VSAM File

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
cjcpr

New User


Joined: 21 Mar 2006
Posts: 21
Location: USA

PostPosted: Thu Nov 16, 2006 11:40 pm    Post subject: How to get the record count from a huge VSAM File
Reply with quote

I have a huge VSAM (KSDS) file. I want to get the record count from the file. Is there an easy way to do it?
Back to top
View user's profile Send private message

PeD

Active User


Joined: 26 Nov 2005
Posts: 456
Location: Belgium

PostPosted: Fri Nov 17, 2006 12:00 am    Post subject:
Reply with quote

LISTCAT
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Nov 17, 2006 12:38 am    Post subject: Re: How to get the record count from a huge VSAM File
Reply with quote

after a reorg.
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Chennai

PostPosted: Fri Nov 17, 2006 2:59 pm    Post subject: Re: How to get the record count from a huge VSAM File
Reply with quote

Hi,
Try this JCL this may help you out.

//COUNTREC JOB (2310057,PROD),TEST,CLASS=E,
// MSGCLASS=X,NOTIFY=&SYSUID
//*
//*COUNT THE NUMBER OF RECORDS PRESENT IN A FILE USING SYNCTOOL
//R010 EXEC PGM=SYNCTOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//INPFILE DD DSN=<file name>
// DISP=SHR
//TOOLIN DD *
COUNT FROM(INPFILE)
/*
//SYSOUT DD SYSOUT=*



Regards,
Muthuvel.
Back to top
View user's profile Send private message
snehalatha

New User


Joined: 23 Oct 2006
Posts: 1

PostPosted: Mon Nov 20, 2006 3:33 pm    Post subject: Re: How to get the record count from a huge VSAM File
Reply with quote

cjcpr wrote:
I have a huge VSAM (KSDS) file. I want to get the record count from the file. Is there an easy way to do it?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Mon Nov 20, 2006 5:34 pm    Post subject: Re: How to get the record count from a huge VSAM File
Reply with quote

Listcat
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Record Not found in AlX but record re... mukun264 COBOL Programming 7 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm


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