Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

COBOL Programming :: RE: To trim spaces in a pipe delimited dataset

$
0
0
Author: prino
Posted: Mon Oct 10, 2016 6:58 pm (GMT 5.5)

Nish84 wrote:
However, there would be 60 calls to the sub-routine, one after each MOVE statement. This is what I plan on doing if there isn't an alternative.

Sheesh, 60 calls...

In a real language, like PL/I:

Code:
outrec =           trim(field1) || '|';
.
.
.
outrec = outrec || trim(field60);

Perfectly readable...
_________________
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
No programming here (yet) icon_smile.gif


Viewing all articles
Browse latest Browse all 8500

Trending Articles