OpenCOBOL Forum Index OpenCOBOL
No Bug with OCCURS DEPENDING ON with INITIALIZE | Register To Post |
| Threaded | Newest First | Previous Topic | Next Topic | Bottom |
| Poster | Thread |
|---|---|
| human | Posted on: 2009/10/27 14:27 |
Home away from home ![]() ![]() Joined: 2007/5/15 From: Posts: 967 Online |
No Bug with OCCURS DEPENDING ON with INITIALIZE If you MOVE something to a table that length was defined via DEPENDING ON, all seems fine (only the defined length is used). But if you do an INITIALIZE the whole table is used.
The code Leads to Quote: $>cobc -Debug -x -W INITTST.COB I thought the last ones should be Quote: Here comes Tab-Test "BBBBBBA9" I was wrong, the current pre-release is fine, as Roger clarified in the next post. human |
| simrw | Posted on: 2009/10/29 12:45 |
Webmaster ![]() ![]() Joined: 2005/5/31 From: Bad Soden, Germany Posts: 776 |
Re: Bug with OCCURS DEPENDING ON with INITIALIZE You are (I think) :-)
Bill will correct me if I am wrong; however, Micro Focus produces the same result. It took a bit of digging in the proposed COBOL standard (the one dated 2009-08-23) to find the relevant rule. It's actually under the discussion of the VALUE clause at General Rules 13.18.62.3 paragraph 6. Snip Roger |
| human | Posted on: 2009/10/29 13:21 |
Home away from home ![]() ![]() Joined: 2007/5/15 From: Posts: 967 Online |
Re: NO Bug with OCCURS DEPENDING ON with INITIALIZE I see, thank you for your answer! I'll changed the thread title to "No Bug".
human |
| Threaded | Newest First | Previous Topic | Next Topic | Top |
| Register To Post | |







