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

Count nased on condition in Trailer parameter


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Debasis Misra
Warnings : 1

New User


Joined: 16 Sep 2008
Posts: 72
Location: Bangalore

PostPosted: Tue Mar 06, 2012 4:05 pm
Reply with quote

I have an Input file like this : (133 bytes/FB)

Code:
D1 3456-7686 PCSH
D1 1387-2378 AXKB
D2 3876-9678 PACB
D1 5687-2313 PCSH


I need to get the Count of records which having first 2 byte as D1 in the input file. O/P file length 133 Bytes.

Here the COUNT = 3.

Please help me out.
Back to top
View user's profile Send private message
bodatrinadh

Active User


Joined: 05 Jan 2007
Posts: 101
Location: chennai (India)

PostPosted: Tue Mar 06, 2012 4:21 pm
Reply with quote

try this...

Code:

OPTION COPY                                               
INCLUDE COND=(1,2,CH,EQ,C'D1')                             
OUTFIL REMOVECC,NODETAIL,TRAILER1=('COUNT OF D1 RECORDS=',
                COUNT=(M10,LENGTH=8))                     


Thanks
-3nadh
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts To get the count of rows for every 1 ... DB2 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Insert header record with record coun... DFSORT/ICETOOL 14
Search our Forums:

Back to Top