Menu

#156 MF LINE and COL screen clauses

GC 3.x
accepted
nobody
6
2022-07-10
2016-07-18
Edward Hart
No

Micro Focus supports the following kind of LINE and COLUMN clause:

SCREEN SECTION.
01  scr.
   03  x PIC 9 LINE 4, COL 4.
   03  y PIC 9 LINE, COL.

Here LINE is shorthand for LINE + 1 and COL is shorthand for COL + 1.

Discussion

  • Simon Sobisch

    Simon Sobisch - 2017-04-09

    Strange syntax... Please add a quote of their docs mentioning this.
    And yes: you're free to implement it if MF supports it (the "bad" thing here [it is not that bad and we should have more of these]: to be "correct" we'd need a compiler configuration for this).

     
  • Edward Hart

    Edward Hart - 2017-04-09

    For the COLUMN clause:

    Omitting the NUMBER phrase results in a default value of +1.

    For the LINE clause:

    Omitting the NUMBER phrase results in a default value of PLUS 1.

    Attached is a patch for this feature. Quite a large chunk of the screen description code had to be re-arranged to avoid a reduce/reduce error involving the GLOBAL clause. Do you think it's acceptable?

     
    • Simon Sobisch

      Simon Sobisch - 2017-04-09

      I think we find a better way. Can you please commit the parts that aren't part of this issue already?

      I'm thinking about:

      • re-rename of _symbolic_collection->symbolic_collection; do we need the SHIFT_PREFER there, btw?
      • screen_col_number and screen_line_number
      • PENDING
      • rename of global_screen_opt->screen_global_clause
       
      • Edward Hart

        Edward Hart - 2017-04-09

        Can you please commit the parts that aren't part of this issue already?

        Sure; done in [r1501].

         
  • Simon Sobisch

    Simon Sobisch - 2017-11-17
    • Group: GC 2.2 --> GC 3.0
     
  • Simon Sobisch

    Simon Sobisch - 2022-07-10

    This got somehow lost - @edward-h please send an updated patch towards current SVN and/or de-assign yourself.

     
  • Edward Hart

    Edward Hart - 2022-07-10
    • assigned_to: Edward Hart --> nobody
     

Log in to post a comment.