Page 1 of 1

cobol report

PostPosted: Sat Sep 04, 2010 2:42 am
by itzme.sanjana
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

Re: cobol report

PostPosted: Sat Sep 04, 2010 3:10 am
by dick scherrer
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.

Re: cobol report

PostPosted: Sat Sep 04, 2010 9:32 am
by NicC
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.