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

How to get the record count from a huge VSAM File


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
cjcpr

New User


Joined: 21 Mar 2006
Posts: 20
Location: USA

PostPosted: Thu Nov 16, 2006 11:40 pm
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: 459
Location: Belgium

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

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

Global Moderator


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

PostPosted: Fri Nov 17, 2006 12:38 am
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: Canada

PostPosted: Fri Nov 17, 2006 2:59 pm
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
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: 3156
Location: Tucson AZ

PostPosted: Mon Nov 20, 2006 5:34 pm
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 All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts IGYPG3178-I when compiling a pgm read... COBOL Programming 6
No new posts count contained values of several col... DB2 5
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts DB2 Query to get the count of Unique ... DB2 2
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
Search our Forums:


Back to Top