View previous topic :: View next topic
|
Author |
Message |
deepcts
New User
Joined: 24 Apr 2007 Posts: 1 Location: india
|
|
|
|
I want to report the number of records available in my input file, which utility can help me out, please provide the syntax of the same. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
You can use SORT or IEBGENER
Quote: |
please provide the syntax of the same. |
Please supply ?50.
The syntax for the sort solution can be found in the sort manuals, and for IEBGENER in the utilities manual, both easily accessible from the "Manuals" button on the top of this page. |
|
Back to top |
|
|
vijikesavan
Active User
Joined: 04 Oct 2006 Posts: 118 Location: NJ, USA
|
|
|
|
The record count can be obtained using various methods.
three of them I know
1) Using DFSORT
your sysin card will be like this:
Code: |
//SYSIN DD *
OPTION COPY
OUTFIL REMOVECC,NODETAIL,
TRAILER1=(COUNT=(M11,LENGTH=8))
/* |
2) using ICETOOL
Code: |
//TOOLIN DD *
COUNT FROM(INPFILE)
/* |
3) Using fileaid
Code: |
//Step1 EXEC PGM=FILEAID
...
your card will be
//SYSIN DD *
$$DD01 TALLY
/* |
Hope this helps.
Thanks,
Viji |
|
Back to top |
|
|
|