Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : Q. If there is a situation, where we need to code more than 255 steps in a JOB? A. We need to split jcl into two jcls , at the end of the first jcl check the condition code and initiate the second jcl.

Google
 
Web mainframegurukul.com

Welcome to the mainframegurukul forums.

You are currently viewing our mainframe forums as a guest which gives you limited access to view most discussions, articles. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support at admin@mainframegurukul.com


number of records in input file

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> DFSORT , ICETOOL & Utilities
  View previous topic :: View next topic  
Author Message
govardhan
Member


Joined: 27 Jun 2007
Posts: 6

PostPosted: Wed Jul 04, 2007 7:17 pm    Post subject: number of records in input file Reply with quote

Is there any sort condition, by which we can come to know the number of records in the input file.
Back to top
View user's profile Send private message

Veera
Moderator


Joined: 22 Feb 2006
Posts: 111

PostPosted: Sat Jul 14, 2007 12:48 am    Post subject: Reply with quote

This should work ...it will write the no of records to SORTOUT FILE ,

COUNT -> Is the keyword

Code:


//SYSIN DD  *                               
        SORT FIELDS=COPY                   
        OUTFIL REMOVECC,NODETAIL,           
        TRAILER1=(10:'NO OF RECORDS:',COUNT)
/*                                         



Thanks,
Veera.
Back to top
View user's profile Send private message
nagesh divvela
Member


Joined: 27 Dec 2009
Posts: 16

PostPosted: Wed Apr 28, 2010 11:02 am    Post subject: Reply with quote

Code:


//SYSIN DD *
SORT FIELDS=COPY
OUTFIL REMOVECC,NODETAIL,
TRAILER1=(10:'NO OF RECORDS:',COUNT)
/*


Hi...could you please let me know what REMOVECC & NODETAIL strings are for ?

Regards,
Nagesh D
Back to top
View user's profile Send private message
Frank Yaeger
Moderator


Joined: 18 Feb 2006
Posts: 511
Location: San Jose, CA

PostPosted: Wed Apr 28, 2010 9:35 pm    Post subject: Reply with quote

REMOVECC removes the ANSI carriage control character (e.g. '1' for page eject).

NODETAIL says not to write the data records, so only the report records will be written - in this case, only the TRAILER1 record will be written.

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

http://www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000080

For more information on writing the count to a file, see the "Display the number of input or output records" Smart DFSORT Trick at:

http://www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000094
_________________
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> DFSORT , ICETOOL & Utilities All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts patching a file 3 devmain 3155 Sat Jan 30, 2010 6:48 pm
Anuj Dhawan View latest post
No new posts Reg: DDIO file in XPED 4 simha 7109 Wed Nov 26, 2008 1:29 pm
Anuj Dhawan View latest post
No new posts REMOVE HIGH VALUE FROM THE EXTRACT FILE 2 Guest 3046 Fri May 09, 2008 11:04 am
Krishna View latest post
No new posts SELECT clause for Flat / ESDS file. 2 rangab 3697 Sat Mar 22, 2008 1:46 pm
sai View latest post
No new posts SPLIT FILE 3 pkaushi 21647 Thu Feb 23, 2006 1:30 am
pzmohanty View latest post
 



This widget requires Flash Player 9 or better








Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB