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
 
Displaying count for invidual sections

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

New User


Joined: 11 Jan 2007
Posts: 52
Location: chennai

PostPosted: Fri Apr 20, 2007 2:51 pm    Post subject: Displaying count for invidual sections
Reply with quote

Hi ,

Now i have written code to display a section report based on first 2 character. i want to prinf the nomber of records for each section. how to do that, the code i am using to display is as below.

Code:
//TOOLIN DD *                         
DISPLAY FROM(IN) LIST(SECTIONS)-       
HEADER('M') ON(3,3,CH)-               
BTITLE('S') BREAK(1,2,CH)-             
/*   


Regards,
Mani
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: Fri Apr 20, 2007 8:08 pm    Post subject:
Reply with quote

DISPLAY doesn't have a COUNT function, but OUTFIL does, so you can use this DFSORT job to do what you want:

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=...  input file
//SECTIONS DD SYSOUT=*
//SYSIN DD *
  OPTION COPY
  OUTFIL FNAMES=SECTIONS,
   BUILD=(3,3,120:X),
   SECTIONS=(1,2,SKIP=P,
    HEADER3=('S',2X,1,2,/,X,/,'M',/,'--------------------'),
    TRAILER3=('COUNT IS ',COUNT=(M10,LENGTH=5)))
/*
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 Reg:Displaying the particular month o... bhavana yalavarthi All Other Mainframe Topics 4 Sat Jul 08, 2017 8:13 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