Has someone got some good documentation on COBOL pointers. I went thru IBMs material but what i want is the application of pointers. I have been coding in cobol for the past three years and have not encountered a compelling need to use pointers.
So I just wanted to know what are all the situations when someone needs pointers.
I wrote some 6 line code to trim embedded multiple space with single space(for a variables value). I thought that it is the best way one can accomplish this( i used reverse function and some inspect clause). However he said u can accomplish this in three lines of code using cobol pointers. Any idea?
RPG pgmrs how do you do this...replacing multiple spaces with a single space.
So I just wanted to know what are all the situations when someone needs pointers.
I wrote some 6 line code to trim embedded multiple space with single space(for a variables value). I thought that it is the best way one can accomplish this( i used reverse function and some inspect clause). However he said u can accomplish this in three lines of code using cobol pointers. Any idea?
RPG pgmrs how do you do this...replacing multiple spaces with a single space.
Comment