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

JCL to count the no of records


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Sep 18, 2010 11:15 am
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
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 Developer


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

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

Mohammed,

See the "Display the number of input or output records" Smart DFSORT Trick at:

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 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 To get the count of rows for every 1 ... DB2 3
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top