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
 
Summary Reports

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

New User


Joined: 13 Oct 2006
Posts: 3

PostPosted: Fri Oct 13, 2006 5:06 pm    Post subject: Summary Reports
Reply with quote

Hi,

I have 3 files in the below format -

File1
AAA BBB CCC
31.00 34.00 24.00

File2
AAA BBB CCC
30.00 34.00 24.00

File3
AAA BBB CCC
30.00 34.00 24.00

I need an output with the sum under each header as follows -

Output file -
AAA BBB CCC
91.00 102.00 72.00

Can anyone suggest a solution for this?

Thanks in advance,
Gopikrishnan K
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 Oct 13, 2006 9:06 pm    Post subject:
Reply with quote

Here's a DFSORT/ICETOOL job that will do what you asked for. Be sure to use MOD for the //OUT DD.

Code:

//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//CON DD DSN=...  input file1
//    DD DSN=...  input file2
//    DD DSN=...  input file3
//OUT DD DISP=MOD,DSN=...  output file
//TOOLIN DD *
COPY FROM(CON) TO(OUT) USING(CTL1)
COPY FROM(CON) TO(OUT) USING(CTL2)
/*
//CTL1CNTL DD *
* Get header
  OPTION STOPAFT=1
/*
//CTL2CNTL DD *
* Get total for detail records
  OUTFIL FNAMES=OUT,REMOVECC,NODETAIL,
    OMIT=(1,1,CH,EQ,C'A'),
    TRAILER1=(1:TOT=(1,6,UFF,EDIT=(IIT.TT)),
              13:TOT=(13,6,UFF,EDIT=(IIT.TT)),
              24:TOT=(24,6,UFF,EDIT=(IIT.TT)))
/*
Back to top
View user's profile Send private message
Gopikrishnan K

New User


Joined: 13 Oct 2006
Posts: 3

PostPosted: Mon Oct 16, 2006 12:11 pm    Post subject: Re: Summary Reports
Reply with quote

Hi Frank,


That was absolutely what I required. Thanks a ton.

Thanks,
Gopikrishnan K
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 Splitting of single report to seperat... abdulrafi TSO/ISPF 7 Mon Mar 27, 2017 3:59 pm
No new posts Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm
No new posts Validation of reports generated in As... deb_parthas PL/I & Assembler 3 Wed Jul 30, 2014 3:18 pm
No new posts How to implement delimiter for summar... sureshbabu.jv CA Products 3 Tue Nov 12, 2013 5:53 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us