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 count no of records in VSAM cluster

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
manikant pathak

New User


Joined: 09 May 2005
Posts: 37
Location: bangalore

PostPosted: Tue Jun 14, 2005 3:57 pm    Post subject: how to count no of records in VSAM cluster
Reply with quote

hi,

can anyone please tell me what is the utility used to count the no of records in a VSAM cluster...



Thanks in advance,


MKP
Back to top
View user's profile Send private message

Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Tue Jun 14, 2005 9:21 pm    Post subject:
Reply with quote

Here are two ways to count the records in a VSAM cluster with DFSORT:

DFSORT/ICETOOL COUNT operator

Code:

//S1    EXEC  PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=...  VSAM input file
//TOOLIN DD *
COUNT FROM(IN)
/*


The count will be displayed in TOOLMSG in a message like this:

Code:

ICE628I 0 RECORD COUNT:  000000000000502


DFSORT OUTFIL COUNT

Code:

//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=...  VSAM input file
//SORTOUT DD SYSOUT=*
//SYSIN DD *
  OPTION COPY
  OUTFIL NODETAIL,REMOVECC,
    TRAILER1=(COUNT=(M11,LENGTH=5),80:X)
/*


The count will be displayed in SORTOUT.
Back to top
View user's profile Send private message
David P

Active User


Joined: 11 Apr 2005
Posts: 106
Location: Cincinnati Ohio

PostPosted: Wed Jun 15, 2005 9:52 am    Post subject:
Reply with quote

Hi,
You can also use LISTCAT for counting the number of records.

regards,
David.
Back to top
View user's profile Send private message
manikant pathak

New User


Joined: 09 May 2005
Posts: 37
Location: bangalore

PostPosted: Wed Jun 15, 2005 11:36 am    Post subject:
Reply with quote

hi Frank,

can you please explain the parameters given in count i.e M11 and length =5 ,why are you specifying length=5?

MKP
Back to top
View user's profile Send private message
Alain Benveniste

New User


Joined: 14 Feb 2005
Posts: 88

PostPosted: Wed Jun 15, 2005 6:29 pm    Post subject: Re: how to count no of records in VSAM cluster
Reply with quote

DFSORT gives you the opportunity to use many pre-defined edit masks. M11 is one of them.
LENGTH specifies the length of the edited output field. If the implied length of the edited output field produced using an edit mask or edit pattern is not suitable for presenting your numeric data, LENGTH can be used to make the edited output field shorter or longer. n specifies the length of the edited output field. The value for n must be between 1 and 44. LENGTH does not change the pattern used, only the length of the resulting edited output field.

Take a look to the DFSORT Application Programming Guide.

Alain
Back to top
View user's profile Send private message
manikant pathak

New User


Joined: 09 May 2005
Posts: 37
Location: bangalore

PostPosted: Wed Jun 15, 2005 7:04 pm    Post subject:
Reply with quote

hi ,


thanks all for replying to my query....




bye,

MKP
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 1 Wed Dec 06, 2017 1:50 am
No new posts ISMF Difference between volume count ... upendrasri IBM Tools 2 Tue Dec 05, 2017 12:40 pm
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm
No new posts Matching and unmatched records!! Vignesh Sid SYNCSORT 3 Thu Nov 09, 2017 11:22 am

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