I have an old data stored in Cobol Data files, I wrote a programs in Cobol to convert to Text, I did some files with no problem, but I faced two issues :
1) If the Cobol Data file File Description (FD) has an Array (Matrix) , what is the Text FD will be ?? example :
02 CHOAC-ACCUMLATER-NO PIC 9(10).
02 CHOAC-TOTAL OCCURS 30 TIMES.
04 CHOAC-BEG-BAL-M PIC S9(9)V999 COMP-3.
04 CHOAC-DEBIT-M PIC S9(9)V999 COMP-3.
04 CHOAC-CREDIT-M PIC S9(9)V999 COMP-3.
04 CHOAC-BEG-BAL-O PIC S9(9)V999 COMP-3.
04 CHOAC-DEBIT-O PIC S9(9)V999 COMP-3.
04 CHOAC-CREDIT-O PIC S9(9)V999 COMP-3.
2) What is the Field Picture will be in the FD for TEXT output file to have the Minus Sign ,
exmaple : Below I used DOT instead of V , but what should I use for S ?
Cobol File : PIC S9(9)V999
Text File : PIC 9(9).999
Thanks in advance