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
 
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

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