maintaining a position variable and appending pieces via reference modification — is the standard COBOL idiom for constructing dynamic output strings. Initialize the pointer to 1, advance it by the length of each appended piece.