Does anyone have a quick method for finding a COBOL copybook start-positions for fields? For example:
000100 01  BGG-FILE-REC.                                                        
000200     03  BGG-RCD-KEY.                                                     
000300         05  BGG-DUDENAME            PIC XXXX. 
000400         05  BGG-DUDEADDR            PIC XX.   
000500         05  BGG-HAIRCOLOR           PIC X(71). 
000600         05  BGG-EYECOLOR            PIC X(8). 
The BGG-HAIRCOLOR column begins at column 7. However, the actual file I am handling has about 250 variables totalling to 3400 bytes. Slogging through and adding the PIC values with a hand calculator is hideous and not happening in my lifetime. The number would be nice to have in vi for when I am examining output from the system; i.e, does BGG-EYECOLOR value fall in the correct column?
I could write a perl script to annotate such a copybook but before I do it I wondered if anyone has a smoother way to get the same value?