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 column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm

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