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

How to write Count only using Display statement


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Hritam

New User


Joined: 27 Jun 2005
Posts: 36
Location: India

PostPosted: Mon Jun 27, 2005 6:34 pm
Reply with quote

Hi,
I want to write the count of some detail records(using some include statement) only by using Display statement of Icetool pgm. But i am not able to get the syntax to use both Count & Display.
Can anyone please help me out of these.
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: Tue Jun 28, 2005 2:41 am
Reply with quote

DISPLAY does NOT have a COUNT parameter.

However, you can just use a DFSORT job like this to get the count of the detail records using an INCLUDE statement:

Code:

//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=...  input file
//SORTOUT DD SYSOUT=*
//SYSIN DD *
   OPTION COPY
   INCLUDE COND=(...)
   OUTFIL REMOVECC,NODETAIL,TRAILER1=(COUNT,M11)
/*


You can do the same thing with DFSORT's ICETOOL using a COPY operator.

Code:

//S2 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=...  input file
//OUT DD SYSOUT=*
//TOOLIN DD *
  COPY FROM(IN) USING(CTL1)
/*
//CTL1CNTL DD *
   INCLUDE COND=(...)
   OUTFIL FNAMES=OUT,
       REMOVECC,NODETAIL,TRAILER1=(COUNT,M11)
/*
Back to top
View user's profile Send private message
Hritam

New User


Joined: 27 Jun 2005
Posts: 36
Location: India

PostPosted: Tue Jun 28, 2005 9:47 am
Reply with quote

Thanks Frank!!!
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(F1 & F2) and writ... JCL & VSAM 8
No new posts To get the count of rows for every 1 ... DB2 3
No new posts Write line by line from two files DFSORT/ICETOOL 7
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
Search our Forums:

Back to Top