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
 
JCL to count the no of records

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

New User


Joined: 06 Jul 2010
Posts: 8
Location: Chennai

PostPosted: Sat Sep 18, 2010 11:00 am    Post subject: JCL to count the no of records
Reply with quote

I waana know if there is any JCL which can count the no of records processed by a particular job and must give the output
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10308
Location: italy

PostPosted: Sat Sep 18, 2010 11:15 am    Post subject: Reply to: JCL to count the no of records
Reply with quote

Quote:
I waana know if there is any JCL which can count the no of records processed by a particular job and must give the output

a YES/NO question deserves a YES/NO answer .... YES there is

anyway did You care to search the forums? looks like not!
if You had, the search would have returned lots of solutions to Your question

good search arguments might be sort record count
( check the box to search for all the terms )
Back to top
View user's profile Send private message
smijoss

Active User


Joined: 30 Aug 2007
Posts: 114
Location: pune

PostPosted: Mon Sep 20, 2010 10:42 am    Post subject:
Reply with quote

COUNT in Output Record
ICETOOL’s COUNT operator now allows you to create a count data set with an
output record containing the record count. New WRITE(countdd), TEXT(’string’),
DIGITS(n) and EDCOUNT(formatting) options make it easy to create an output
data set with a record containing text and the record count in various forms.


Example From ice1ca40.pdf :

COUNT FROM(IN2) WRITE(CT2) TEXT('Count is ') -
EDCOUNT(A1,U10) WIDTH(80)
Prints a message containing the count of records in the IN2 data set. Writes an
80-byte record with the specified string and an edited count to the CT2 data set. If
IN2 contains 3286721 records, the 80-byte output record in CT2 would look like
this:
Count is 3,286,721
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Mon Sep 20, 2010 11:17 pm    Post subject:
Reply with quote

Mohammed,

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
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 column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm

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