Page 1 of 1

Record format delivery

PostPosted: Wed Dec 28, 2011 11:01 pm
by Mehdi shri
Dear friends.
I have a cobol source tha a part of it defines a record format like this:

    03 INPUT-TR01.
    05 TR-ID-NUMBER PIC X(12).
    05 TR-BIRTH-DAT-CMPLT.
    07 TR-BIRTH-DAT-CC PIC 9(2).
    07 TR-BIRTH-DAT PIC 9(6).
    05 TR-HOME-PHON PIC 9(12).
    05 TR-VALUE-ISSU-CAPTAL PIC S9(15)
    SIGN TRAILING SEPARATE.
    05 TR-RESID-STAT PIC X.
    05 TR-STAT-MAIL-CODE PIC X(2).
    05 TR-ISSUED-DATE-CMPLT.
    07 TR-ISSUED-DATE-CC PIC X(02).
    07 TR-ISSUED-DATE PIC X(06).
    05 TR-PARTNER-INF
    OCCURS 10 TIMES INDEXED BY INDX.
    10 TR-PARTNER-NO PIC 9(10).
    10 TR-PART-PERCENT PIC 9(2)V9(2).
    05 FILLER PIC X(234).

IS ther any utility or software to extract it from top down defenitin and provide a horizontal view for better understanding. (like SQL record fomat)

Re: Record format delivery

PostPosted: Wed Dec 28, 2011 11:06 pm
by Robert Sample
Does your site have FIle Aid (a Compuware product) installed? If so, you can browse the file with File Aid and tell it to use a copybook to interpret the layout. There are other products that can do this as well.

Re: Record format delivery

PostPosted: Wed Dec 28, 2011 11:08 pm
by NicC
Wow - I would think the format you show is better as it shows (or would show if you had used code tags) the levels of data by the indentation. SQL rows do not have these different levels ie columns do not have sub-columns.

Re: Record format delivery

PostPosted: Wed Dec 28, 2011 11:21 pm
by Mehdi shri
Thanks a lot

Re: Record format delivery

PostPosted: Wed Dec 28, 2011 11:23 pm
by BillyBoyo
I have no idea of what you mean. Can you give an example? Or try again to explain it in words? Or both would be best.