The Initial Macro 'RESTORE' restores, the labels set during the previous session. The minor irritant is that the cursor is positioned on line that was last set in the previous session. So in the below example. the cursor is positioned in the first column of line 057420
.TAAAA 000010 :************
.TAAAE 000020 :* Program :
000003 000030 :* Title :
.TAAAB 000040 :* Date :
005736 057360 SET W-VALID
.TAAAD 057370 ENDIF
005738 057380 WHEN NONE
005739 057390 :Not possible
005740 057400 ENDSELECT
005741 057410 ENDPROC
.TAAAF 057420 EJECT
I'd like the Cursor to be the Command Line and the First line of the View Screen at the top of the screen, when the dataset is displayed. I've tried using - "LOCATE 1" followed by exit(1), which positions the cursor on the Command Line but does not position the first line at the top of the screen.
The same problem was listed in this post but the solution doesn't work for me. How do I troubleshoot the problem?
Okay, I tried address isredit "UP MAX" followed by exit(1) and it does the trick. The question that I now have is - How do I identify/ eliminate the reason for the LOCATE command not working despite producing RC 0.
Hi Mickey, using the RESET command would remove the labels from the display, which is not what I want. All that I need is to position the cursor at the command line, whilst the first line of the dataset is displayed at the top of the screen, like would have happened in case of a 3.4 view.
While I've been able to achieve the same, as stated above, I don't understand why LOCATE is not working with exit(1). I've tried using say, trace as well as Panel trace but nothing seems to point me in the right direction.
I could have very well missed something obvious, but I don't know what I should look for.