Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

A programming language is low level when its programs require attention to the irrelevant.


devel / comp.lang.cobol / Re: Problem with UNSTRING (or problem with me)

SubjectAuthor
* Problem with UNSTRING (or problem with me)Bruce Axtens
`* Re: Problem with UNSTRING (or problem with me)docdwarf
 `* Re: Problem with UNSTRING (or problem with me)Bruce Axtens
  `- Re: Problem with UNSTRING (or problem with me)docdwarf

1
Problem with UNSTRING (or problem with me)

<57264bfc-416e-4d54-9895-345f8281376bn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=367&group=comp.lang.cobol#367

  copy link   Newsgroups: comp.lang.cobol
X-Received: by 2002:a05:620a:470e:b0:6b5:ed19:5a with SMTP id bs14-20020a05620a470e00b006b5ed19005amr17921060qkb.55.1659533432957;
Wed, 03 Aug 2022 06:30:32 -0700 (PDT)
X-Received: by 2002:a81:18c2:0:b0:31f:5a3e:175b with SMTP id
185-20020a8118c2000000b0031f5a3e175bmr23116053ywy.405.1659533432740; Wed, 03
Aug 2022 06:30:32 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.cobol
Date: Wed, 3 Aug 2022 06:30:32 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=49.196.19.210; posting-account=1W9SuAoAAAApKJ8N7QNszANYOyWIVzjG
NNTP-Posting-Host: 49.196.19.210
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <57264bfc-416e-4d54-9895-345f8281376bn@googlegroups.com>
Subject: Problem with UNSTRING (or problem with me)
From: bruce.axtens@gmail.com (Bruce Axtens)
Injection-Date: Wed, 03 Aug 2022 13:30:32 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1560
 by: Bruce Axtens - Wed, 3 Aug 2022 13:30 UTC

Given
01 WS-SIDES PIC X(20).
01 WS-SIDE-NUMBERS PIC 99V9
OCCURS 3 TIMES
INDEXED BY SIDE-INDEX.
and
UNSTRING WS-SIDES DELIMITED BY ALL ','
INTO WS-SIDE-NUMBERS(1)
WS-SIDE-NUMBERS(2)
WS-SIDE-NUMBERS(3)
END-UNSTRING.
DISPLAY WS-SIDE-NUMBERS(1) SPACE WS-SIDE-NUMBERS(2) SPACE WS-SIDE-NUMBERS(2).

with WS-SIDES containing '0.5,0.4,0.6', I'm consistently getting "00.5 00.4 00.4" displayed. Why isn't the 0.6 ending up in WS-SIDE-NUMBERS(3)?

-- Bruce

Re: Problem with UNSTRING (or problem with me)

<tce36n$hsu$1@reader2.panix.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=368&group=comp.lang.cobol#368

  copy link   Newsgroups: comp.lang.cobol
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!.POSTED.panix1.panix.com!not-for-mail
From: docdwarf@panix.com
Newsgroups: comp.lang.cobol
Subject: Re: Problem with UNSTRING (or problem with me)
Date: Wed, 3 Aug 2022 15:11:19 -0000 (UTC)
Organization: Public Access Networks Corp.
Message-ID: <tce36n$hsu$1@reader2.panix.com>
References: <57264bfc-416e-4d54-9895-345f8281376bn@googlegroups.com>
Injection-Date: Wed, 3 Aug 2022 15:11:19 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="panix1.panix.com:166.84.1.1";
logging-data="18334"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
 by: docdwarf@panix.com - Wed, 3 Aug 2022 15:11 UTC

In article <57264bfc-416e-4d54-9895-345f8281376bn@googlegroups.com>,
Bruce Axtens <bruce.axtens@gmail.com> wrote:

[snip]

> DISPLAY WS-SIDE-NUMBERS(1) SPACE WS-SIDE-NUMBERS(2) SPACE WS-SIDE-NUMBERS(2).
>
>with WS-SIDES containing '0.5,0.4,0.6', I'm consistently getting "00.5
>00.4 00.4" displayed. Why isn't the 0.6 ending up in WS-SIDE-NUMBERS(3)?

DD

Re: Problem with UNSTRING (or problem with me)

<862a935a-95a4-44e1-bed0-3d928966b476n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=369&group=comp.lang.cobol#369

  copy link   Newsgroups: comp.lang.cobol
X-Received: by 2002:a37:43d4:0:b0:6b8:e3ba:ddfc with SMTP id q203-20020a3743d4000000b006b8e3baddfcmr5004415qka.192.1659570799254;
Wed, 03 Aug 2022 16:53:19 -0700 (PDT)
X-Received: by 2002:a0d:dec2:0:b0:31e:9955:d32f with SMTP id
h185-20020a0ddec2000000b0031e9955d32fmr24808338ywe.338.1659570799045; Wed, 03
Aug 2022 16:53:19 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.cobol
Date: Wed, 3 Aug 2022 16:53:18 -0700 (PDT)
In-Reply-To: <tce36n$hsu$1@reader2.panix.com>
Injection-Info: google-groups.googlegroups.com; posting-host=49.196.19.210; posting-account=1W9SuAoAAAApKJ8N7QNszANYOyWIVzjG
NNTP-Posting-Host: 49.196.19.210
References: <57264bfc-416e-4d54-9895-345f8281376bn@googlegroups.com> <tce36n$hsu$1@reader2.panix.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <862a935a-95a4-44e1-bed0-3d928966b476n@googlegroups.com>
Subject: Re: Problem with UNSTRING (or problem with me)
From: bruce.axtens@gmail.com (Bruce Axtens)
Injection-Date: Wed, 03 Aug 2022 23:53:19 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 3
 by: Bruce Axtens - Wed, 3 Aug 2022 23:53 UTC

On Wednesday, 3 August 2022 at 11:11:22 pm UTC+8, docd...@panix.com wrote:
> > DISPLAY WS-SIDE-NUMBERS(1) SPACE WS-SIDE-NUMBERS(2) SPACE WS-SIDE-NUMBERS(2).

Yep, problem with me. How to look stupid. Sigh. Won't be the last time.

Re: Problem with UNSTRING (or problem with me)

<tcf5dd$9ep$1@reader2.panix.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=370&group=comp.lang.cobol#370

  copy link   Newsgroups: comp.lang.cobol
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!2.eu.feeder.erje.net!3.us.feeder.erje.net!feeder.erje.net!panix!.POSTED.panix1.panix.com!not-for-mail
From: docdwarf@panix.com
Newsgroups: comp.lang.cobol
Subject: Re: Problem with UNSTRING (or problem with me)
Date: Thu, 4 Aug 2022 00:55:09 -0000 (UTC)
Organization: Public Access Networks Corp.
Message-ID: <tcf5dd$9ep$1@reader2.panix.com>
References: <57264bfc-416e-4d54-9895-345f8281376bn@googlegroups.com> <tce36n$hsu$1@reader2.panix.com> <862a935a-95a4-44e1-bed0-3d928966b476n@googlegroups.com>
Injection-Date: Thu, 4 Aug 2022 00:55:09 -0000 (UTC)
Injection-Info: reader2.panix.com; posting-host="panix1.panix.com:166.84.1.1";
logging-data="9689"; mail-complaints-to="abuse@panix.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
 by: docdwarf@panix.com - Thu, 4 Aug 2022 00:55 UTC

In article <862a935a-95a4-44e1-bed0-3d928966b476n@googlegroups.com>,
Bruce Axtens <bruce.axtens@gmail.com> wrote:
>On Wednesday, 3 August 2022 at 11:11:22 pm UTC+8, docd...@panix.com wrote:
>> > DISPLAY WS-SIDE-NUMBERS(1) SPACE WS-SIDE-NUMBERS(2) SPACE
>WS-SIDE-NUMBERS(2).
>
>Yep, problem with me. How to look stupid. Sigh. Won't be the last time.

Gently, Mr Axtens. The best way I know to learn to find the mistakes is
to have made them, yourself.

DD

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor