Menu

#423 ACCEPT/DISPLAY SIZE no longer works

GC 2.2
closed
5 - default
2017-09-10
2017-09-08
Luke Smith
No

The dasize sample program in contributions shows that 2.2 does not ACCEPT or DISPLAY the expected results for the SIZE option in many cases. It should be put back the way it was.

  1. It will not compile WITH SIZE ZERO.

  2. WITH SIZE ZERO (or a literal or variable zero) is supposed to take the whole length of the field.

  3. Fix dasize so that it compiles. Then run the program to see what it displays and compare it to what is expected.

Related

Patches: #26

Discussion

  • Edward Hart

    Edward Hart - 2017-09-08
    • status: open --> accepted
    • assigned_to: Edward Hart
     
  • Edward Hart

    Edward Hart - 2017-09-08
    • labels: --> screen section
     
  • Edward Hart

    Edward Hart - 2017-09-09

    I have identified and fixed the issues with the SIZE clause. Running the dasize program reveals further bugs:

    • DISPLAY LOW-VALUE does not position the cursor for the next statement as it should (it only works when the next item is in the DISPLAY with it, e.g. DISPLAY LOW-VALUE AT 1234, "I'm at pos 1234"); this may need a new conf. option setting LINE 0 COL 0 as the implied position of the first item in the DISPLAY (currently the first item is implied to be at LINE 1 COL 1).
    • a conf. option is needed to disable Micro Focus' special behaviour with DISPLAY SPACE (it acts as ERASE EOS)
    • ACCEPT WITH UPDATE does not work

    I am now trying to fix these bugs before committing the fix for the SIZE clause.

     
  • Edward Hart

    Edward Hart - 2017-09-10

    All fixed in [r2076]. dasize now works properly with two exceptions:

    • SPACE with no size: this now outputs one space - dasize has expected output of 10 spaces.
    • The DISPLAY "after low value" statements do not work properly because the compiler assumes they are ordinary device DISPLAYs. You either need to add UPON CRT to the statements, add CONSOLE IS CRT to SPECIAL-NAMES or compile with -fconsole-is-crt.
     

    Last edit: Edward Hart 2017-09-10
  • Edward Hart

    Edward Hart - 2017-09-10
    • status: accepted --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB