gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[open-cobol-list] UNSTRING to array?


From: Bruce M. Axtens
Subject: [open-cobol-list] UNSTRING to array?
Date: Fri, 31 May 2013 21:49:07 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:22.0) Gecko/20100101 Thunderbird/22.0

I get the impression that I'm going about this the wrong way.

I have a list of comma-delimited values:
01    list            pic x(85)
    value "123,12345,1234567,987654321,10001,-10001,-123,-100,100,-12345,1,2,-1,-10,2002,-2002,0".

I have an array with enough room for each of the values and a little left over:
01    paramarray.
    03    param pic s9(9) occurs 20 times indexed by paramitem.

I'm unstringing into the paramarray.
    unstring list delimited by "," into paramarray.

The first value goes in okay, but the rest is gobbledygook.

How should I approach this?

Kind regards,
Bruce.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]