The SET command can NOT be used to assign a value to a numeric field. The SET command is used to change the value of a USAGE INDEX variable or a POINTER variable.
So you are correct that this should return an error...
Can you go to the "tickets" section above and create a bug report for this ? Please include a very small program to illustrate the bug...
Thanks,
Chuck Haatvedt
Last edit: Chuck Haatvedt 2023-07-05
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
When writing the following code, and compiling with -std=ibm, GnuCOBOL does not give any errors.
But when compiling with IBM COBOL compiler, we receive the following error:
It it possible to setup GnuCOBOL to return an error, when trying to SET ordinary integer variables?
Regards
Rune Christensen
Rune,
The SET command can NOT be used to assign a value to a numeric field. The SET command is used to change the value of a USAGE INDEX variable or a POINTER variable.
So you are correct that this should return an error...
Can you go to the "tickets" section above and create a bug report for this ? Please include a very small program to illustrate the bug...
Chuck Haatvedt
Last edit: Chuck Haatvedt 2023-07-05