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: 21
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: 6966
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top