Hi everyone,
Bet you have heard this before but I am new to COBOL and need some help (its true).
I am reading in from a file of fixed length and parsing for the titles ie Mr, Miss, Doctor etc. There can be anything upto around twenty titles so I don't want to hardcode these in (not just lazy but bad style).
So I need to build an array of the Titles I read in, not a problem, but I need the field lengths to match that of the Title read in. So I would have an array of TITLES where TITLE(1) contains 'Mr' of length PIC X(2) and TITLE(2) contains 'Miss' of length PIC x(4) etc. Does this make sense? And if so any ideas?
Bet you have heard this before but I am new to COBOL and need some help (its true).
I am reading in from a file of fixed length and parsing for the titles ie Mr, Miss, Doctor etc. There can be anything upto around twenty titles so I don't want to hardcode these in (not just lazy but bad style).
So I need to build an array of the Titles I read in, not a problem, but I need the field lengths to match that of the Title read in. So I would have an array of TITLES where TITLE(1) contains 'Mr' of length PIC X(2) and TITLE(2) contains 'Miss' of length PIC x(4) etc. Does this make sense? And if so any ideas?