New to COBOL.. I would like to populate a table. I want it to have two columns and eight rows in each column. I want to "hard code" these different values into the first colum, with one in each field. They are Non-integer fixed point values (Swedish comma notation): 16,0 17,0 18,5 25,0 30,0 35,0 40,0 99,0. The second column should be filled with strings up to 30 charachters in each row/field. I think I've managed to do the table, however, I don't know how to populate it in the best way.
01 BMI_tabell.
05 tabell_columns_highbreak OCCURS 2 TIMES.
10 Cutoffhigh_rows OCCURS 8 TIMES.
15 numBMI_cat_high_break PIC 99.9.
10 BMI_meddelande_kort_rows OCCURS 8 TIMES.
15 BMI_meddelande_kort_cat_X pic X(30).
This is in the "data division." under "working-storage section."
I tried initializing each table item individually, according to IBM documentation, but did not get it to work due to the "nested" nature of the table.