On Dec 22, 2022, at 1:58 PM, Rich Loeber <rich@xxxxxxxxx> wrote:
I tried the option with 2 spaces as the delimiter and it seems to produce the result that I'm looking for.
On 12/22/2022 1:36 PM, Mark Waterbury wrote:
Try: STRING SRC-STRING DELIMITED BY ' ' INTO TGT-STRING
On Thursday, December 22, 2022 at 01:25:52 PM EST, Rich Loeber <rich@xxxxxxxxx><mailto:rich@xxxxxxxxx> wrote:
I use the STRING command quite often and I've run into an issue. I normally do STRING delimited by SIZE which uses the defined field length when gluing fields together. What I'd really like to do in one application is have it delimited by the size of the field contents. For example, I have a 200 character field but it often only has the first 6 characters for content. I would like to the STRING command to only copy those 6 characters and not the other 194 blanks.
Kisco Systems LLC
This is the COBOL Programming on the IBM i (AS/400 and iSeries) (COBOL400-L) mailing list
To post a message email: COBOL400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: COBOL400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.