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
Subject: Re: To trim spaces in a pipe delimited dataset
Posted: Mon Oct 10, 2016 3:29 pm (GMT 5.5)

Nish84 wrote:
However, since there are 60 such fields, checking each field individually and moving the data to the output makes my code a bit too long.

And does the compiler complain about long code? Or are you just too lazy to copy the code 59 times and change the field names?

Ever thought about writing a subroutine? Or maybe your organisation already has one?
_________________
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