IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Report the number of records available in my input file


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Tue Apr 24, 2007 6:50 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
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
Search our Forums:

Back to Top