MOVE76543.21TONUMBER-PACKED-SIGNED.IFNUMBER-PACKED-NOSIGNISNUMERICMOVE'Y'TONUMERIC-SWITCHELSEMOVE'N'TONUMERIC-SWITCH.DISPLAY'UNSIGNED PACKED 76543.21 - IS NUMERIC RESULT='LINE9COL1WITHLOWLIGHTNUMERIC-SWITCHWITHHIGHLIGHT.
Above is a part of a COBOL test suite I wrote. I am using it to
learn about gnucobol which I recently installed. The test runs as
expected. An unsigned packed field properly tests as non-numeric.
However NUMERIC-SWITCH is not highlighted in this case. As an
alternative if I make a separate DISPLAY NUMERIC-SWITCH ...
statement the 'N' displays highlighted at LINE 1 COL 1.
I do not want to count positions and there are several situations
where I want a subsequent DISPLAY or ACCEPT to start at the next
screen position. Previous COBOLs have allowed this by default or by
specifying "COL 0". I tried this and other methods. I find no help
in the 700+ page manual. Please advise.
--
Sent from my old Linux PC - no advertisement or legal disclaimer.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
please add the output of cobcrun -V | grep libcob; cobcrun --verbose --info | grep -C1 screen as the used screenio and versions have quite an effect and therefore this information would be good to have ...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Only data items whose USAGE (see [USAGE], page 217) is either
explicitly or implicitly
defined as DISPLAY may be used in NUMERIC or any of the ALPHABETIC
class conditions.
Some COBOL implementations disallow the use of group items or PIC A
items with NUMERIC
class conditions and the use of PIC 9 items with ALPHABETIC class
conditions. GnuCOBOL
has no such restrictions.
On 03/02/2023 12:10, noreply@sourceforge.net wrote:
Above is a part of a COBOL test suite I wrote. I am using it to
learn about gnucobol which I recently installed. The test runs as
expected. An unsigned packed field properly tests as non-numeric.
However NUMERIC-SWITCH is not highlighted in this case. As an
alternative if I make a separate DISPLAY NUMERIC-SWITCH ...
statement the 'N' displays highlighted at LINE 1 COL 1.
I do not want to count positions and there are several situations
where I want a subsequent DISPLAY or ACCEPT to start at the next
screen position. Previous COBOLs have allowed this by default or by
specifying "COL 0". I tried this and other methods. I find no help
in the 700+ page manual. Please advise.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2023-02-12
I am Burke@bsacompany.com, the anonymous writer of the initial question. I have found that line-col-zero-default "yes" in rm-strict.conf provides the proper default I hoped for.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Above is a part of a COBOL test suite I wrote. I am using it to
learn about gnucobol which I recently installed. The test runs as
expected. An unsigned packed field properly tests as non-numeric.
However NUMERIC-SWITCH is not highlighted in this case. As an
alternative if I make a separate DISPLAY NUMERIC-SWITCH ...
statement the 'N' displays highlighted at LINE 1 COL 1.
I do not want to count positions and there are several situations
where I want a subsequent DISPLAY or ACCEPT to start at the next
screen position. Previous COBOLs have allowed this by default or by
specifying "COL 0". I tried this and other methods. I find no help
in the 700+ page manual. Please advise.
--
Sent from my old Linux PC - no advertisement or legal disclaimer.
please add the output of
cobcrun -V | grep libcob; cobcrun --verbose --info | grep -C1 screenas the used screenio and versions have quite an effect and therefore this information would be good to have ...From the manual (PG or PR) - - -
Only data items whose USAGE (see [USAGE], page 217) is either
explicitly or implicitly
defined as DISPLAY may be used in NUMERIC or any of the ALPHABETIC
class conditions.
Some COBOL implementations disallow the use of group items or PIC A
items with NUMERIC
class conditions and the use of PIC 9 items with ALPHABETIC class
conditions. GnuCOBOL
has no such restrictions.
On 03/02/2023 12:10, noreply@sourceforge.net wrote:
I am Burke@bsacompany.com, the anonymous writer of the initial question. I have found that line-col-zero-default "yes" in rm-strict.conf provides the proper default I hoped for.
I suggest to register/login when posting :-)
Thank you for letting us know the solution to the initial problem!