MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

report required to be displayed

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
ranikumarimf
Beginner


Joined: 08 Feb 2006
Posts: 1
Topics: 1

PostPosted: Wed Feb 08, 2006 10:22 am    Post subject: report required to be displayed Reply with quote

I have a requirement wherein i have to produce a report by a Cobol pgm .My input dataset looks like below.Basically we need to process the key after key and display the fields as well as summation of values.Can anybody please help me in the requirement ?

INPUT DATASET

Code:

AB ABCD ABC 001 M 1 10
AB ABCD ABC 001 M 2 20
AB ABCD ABC 001 M 3 30
AB ABCD ABC 001 M 4 40
AB ABCD ABC 001 M 5 50
AB ABCD ABC 001 M 6 60
AB ABCD ABC 001 M 7 70
AB ABCD PQR 001 M 1  1
AB ABCD PQR 001 M 2  2
AB ABCD PQR 001 M 3  6
AB ABCD PQR 001 M 4  8
AB ABCD PQR 001 M 5  9
AB ABCD PQR 001 M 6 11 
AB ABCD PQR 001 M 7  8
AB ABCD PQR 002 F 1  3
AB ABCD PQR 002 F 2  5
AB ABCD PQR 002 F 3  7
AB ABCD PQR 002 F 4  6
AB ABCD PQR 002 F 5  2
AB ABCD PQR 002 F 6  1
AB ABCD PQR 003 F 1  6
AB ABCD PQR 004 F 2  2
AB ABCD PQR 003 F 3  1
AB ABCD PQR 004 F 4  1
AB ABCD PQR 003 F 5  1
AB ABCD XYZ 001 F 1  1
AB ABCD XYZ 001 F 2  1



OUTPUT NEEDED

Code:

                     A    B    C    D    E    F    G   TOT
                                                         
AB ABCD ABC 001 M    10   20   30   40   50   60   70  280
                     --   --   --   --   --   --   --  ---
             TOTAL   10   20   30   40   50   60   70  280
                                                         
AB ABCD PQR 001 M     1    2    6    8    9   11    8   45
            002 F     3    5    7    6    2    1        24
            003 F     6    2    1    1    1             11
                     --   --   --   --   --   --   --  ---
             TOTAL   10    9   16   15   12   12    8   80
                                                         
AB ABCD XYZ 001 F     1    1                             2
                     --   --   --   --   --   --   --  ---
             TOTAL    1    1                             2

Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Feb 08, 2006 10:35 am    Post subject: Reply with quote

Please search before posting. check these links. Remember that no one is going to code you the entire pgm.

http://mvsforums.com/helpboards/viewtopic.php?t=4725&highlight=report
http://mvsforums.com/helpboards/viewtopic.php?t=5610&highlight=report

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group