in the program editor i noticed that the expand/collapse indicators (+ and - signs before the source code) do not show up when i list a source from the command line. When i select it from a list (right click and choose list) they do show up and also when i list a source from within another source (right click on the source name after a callnat/fetch and choose list).
It works like this both in 6.1.1 and 6.3.5
Does anybody know anything about this, is this a bug or a feature ?
The other day I could reproduce i SPoD environment. This was against a customer NVD server. Today I cannot reproduce in SAG environment.
Maybe it is related to the version of NDV server?
no, that’s not it. When i list the same program by selecting it from a list of modules (right click → list) it does work.
It might be the NDV server, although that would be very strange indeed. These indicators are just a “PC” editor feature, so what does that have to do with the version of the NDV ? Also, it will be difficult for me to test that, since we have only the one version ofcourse…
Hi Ronald
I can reproduce this and I checked this with the colleague responsible for the editor in the Natural Studio.
He’s investigating the problem. So I’m confident that it will be solved in the next PL of the Natural Studio (V636 PL01 is the next PL to be release if I’m informed correctly).
While your checking with your colleague, can you add this to his list?
The expand and collapse markers also show when a block or loop is not properly closed. It gets confused by the EXAMINE … FOR … statement. It appears to believe the FOR in this statement is the beginning of a FOR loop.
After a little trial an error, it appears to only be a problem when the first argument of the examines statement is an array. I am attaching a screenshot so you can see the expand/collapse icons.
The code, if you want to copy/paste is:
*
IF #A (1) GE ' '
EXAMINE #A (1) FOR #B
GIVING INDEX #I
END-IF
*
IF #A (1) GE ' '
EXAMINE #A (1) FOR #B
GIVING INDEX #I
END-IF
*
IF #A (1) GE ' '
EXAMINE #A (1) FOR #B GIVING INDEX #I
END-IF
*
IF #A (1) GE ' '
EXAMINE #C FOR #B GIVING INDEX #I
END-IF
*
In the image, you will notice that the first IF is ok, the second and third show as errors and the last one is ok. The only difference between the first and second is a space at the end of the EXAMINE line in the first one.
Hi Jerome
It seems it already was on his list
Because I can reproduce the problem with NAT633 PL0 but not with NAT633 PL01.
So it seems to be solved with PL01
Hi Ronald
I run nat6.3.9 - and I can’t repro using your cookbook (i.e. restart nat and list a program from command-line).
So appears to be fixed - if I did the right steps
Finn