cobol report



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

cobol report

Postby itzme.sanjana » Sat Sep 04, 2010 2:42 am

I have a specific kind of requirement to generate 2 report as below:
1) REPORT 1 NAME "AB79600A", FOR RECORDS PRESENT IN FILE ABC AND NOT IN DEF.
2) REPORT 2 NAME "ABC796B", FOR RECORDS PRESENT IN FILE DEF AND NOT IN ABC.

BELOW IS THE REPORT LAYOUT FOR REPORT ABC79600A. 2ND REPORT HAS THE SAME LAOUT WITH NAME ABC79600B.


REPORT  ID: AB79600A                                      ABC CORP LMTD.                                                                           PAGE :      1
PROGRAM ID: AB796000                               AUTOMATED GENERATION PROGRAMME                                               DATE : MM/DD/CCYY
                                                                   SYNCHRONIZATION REPORT LAYOUT                                                 TIME : HH:MM:SS
                                                                   ABC RECS THAT ARE NOT IN DEF TBLS

 RECORD: CT -  CATEGORY
 COLUMN NAMES:
          K1   -  CATEGORY CODE
          K2   -  CATEGORY NAME
          K3   -  PARENT CATEGORY
          K4   -  ACTIVE FLAG

K1             K2         K3         K4
----      -----         -----         ----      
XXXXXX      XXXXXXXXXXXXXX      XXXXXXXXX      XXXXXXXX   
XXXXXX      XXXXXXXXXXXXXX      XXXXXXXXX      XXXXXXXX   
XXXXXX      XXXXXXXXXXXXXX      XXXXXXXXX      XXXXXXXX   

TOTAL COUNT OF MISSING RECORDS   :      ZZZZZZZZZ

__________________________________________________________________________________________________________


IN THE ABOVE LAYOUT "RECORD: AB - CATEGORY" IS THE TABLE NAME I HAVE 6 TYPES OF RECORDS IN A FILE. WHERE "AB" IA ONE TYPE OF RECORD, I HAVE 6 DIFFERENT TYPE OF RECORDS IN FILE IN THE ABOVE EXAMPLE I HAVE USED ONLY 1 RECORD LAYOUT.
SAME WAY I HAVE TO PRINT FOR RECORDS "CT", "RB","RP", "RU', "RY", "RC" WITH DIFFERENT TYPE OF RECORDS ( K1, K2, K3....) LIKE IN ABOVE EXAMPLE.

CAN ANYONE HELP ME TO WRITE A COBOL REPORT PROGRAM. ATTACHED IS THE COPYBOOK LAYOUT
itzme.sanjana
 
Posts: 1
Joined: Sat Sep 04, 2010 2:15 am
Has thanked: 0 time
Been thanked: 0 time

Re: cobol report

Postby dick scherrer » Sat Sep 04, 2010 3:10 am

Hello and welcome to the forum,

cAN ANYONE HELP ME TO WRITE A COBOL REPORT PROGRAM.
We will help when you get stuck, but will not write the code for you. Actually, if it is posted by someone other than you, it will be deleted and they will be cautioned.

Some of us check the forum every day so if you work on this over the weekend, you will still be able to get answers without waiting until next week.

When posting code, jcl, data, output reports, etc, use copy/paste from the terminal and the "Code" tag to preserve alignment (your original post has been coded, but i didn't re-align the content). Use Preview to see your post as it will appear to the forum and then Submit when the post appears as you want.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: cobol report

Postby NicC » Sat Sep 04, 2010 9:32 am

Judging by your first 3 lines you need your files sorted by the keys you are using to compare the files and then your program will be a 2 file match, which you should have been made aware of in your training.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post