View previous topic :: View next topic
|
Author |
Message |
Tarique Anwer
New User
Joined: 27 Jan 2016 Posts: 10 Location: India
|
|
|
|
Hello,
Following up from my previous post, I'm now stuck with something silly. I have a REXX A, which opens up a View session using -
address ispexec "VIEW DATASET('"dataset"') LINECMDS(IDLCMDS)
PANEL(CUSTVIEW) MACRO(RESTORE)"
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
=COLS> ----+----1----+----2
****** ********************
.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?
Any help is much appreciated.
Thanks!
Tarique |
|
Back to top |
|
|
Tarique Anwer
New User
Joined: 27 Jan 2016 Posts: 10 Location: India
|
|
|
|
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.
Thanks,
Tarique |
|
Back to top |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
look at the isredit RESET command |
|
Back to top |
|
|
Tarique Anwer
New User
Joined: 27 Jan 2016 Posts: 10 Location: India
|
|
|
|
Mickeydusaor wrote: |
look at the isredit RESET command |
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.
Thanks,
Tarique |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
As an aside, RESET will not remove labels, but RESET LABELS will. |
|
Back to top |
|
|
Tarique Anwer
New User
Joined: 27 Jan 2016 Posts: 10 Location: India
|
|
|
|
Thanks for the correction Terry. |
|
Back to top |
|
|
|