Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 10274
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 CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Display FTP Session Count within TSO Yolanda Harvey TSO/ISPF 3 Fri Mar 10, 2017 10:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us