Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Report the number of records available in my input file

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

New User


Joined: 24 Apr 2007
Posts: 1
Location: india

PostPosted: Tue Apr 24, 2007 6:42 pm    Post subject: Report the number of records available in my input file
Reply with quote

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
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Apr 24, 2007 6:50 pm    Post subject:
Reply with quote

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
View user's profile Send private message
vijikesavan

Active User


Joined: 04 Oct 2006
Posts: 118
Location: NJ, USA

PostPosted: Tue Apr 24, 2007 6:59 pm    Post subject: Re: Report the number of records available in my input file
Reply with quote

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
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 Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us