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 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: 6970
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 Process file after 7 days of hold charlessxavier All Other Mainframe Topics 0 Tue May 22, 2018 3:54 pm
No new posts TRAILER3 is creating blank record in ... kodeesm DFSORT/ICETOOL 3 Fri May 18, 2018 5:45 pm
No new posts Transfer of mainframe file to PC in Z... maxsubrat JCL & VSAM 4 Thu May 17, 2018 11:35 am
No new posts Rexx command to open an another text ... Bharath Vikraman PC Guides & IT News 7 Sat May 12, 2018 4:34 pm
No new posts Not able to export the VSAM cluster sandeep kumar302 JCL & VSAM 5 Fri May 04, 2018 12:42 pm

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