IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

ISREDIT - Position Cursor on the Command Line


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Tarique Anwer

New User


Joined: 27 Jan 2016
Posts: 10
Location: India

PostPosted: Wed Feb 03, 2016 12:44 pm
Reply with quote

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
View user's profile Send private message
Tarique Anwer

New User


Joined: 27 Jan 2016
Posts: 10
Location: India

PostPosted: Wed Feb 03, 2016 2:44 pm
Reply with quote

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
View user's profile Send private message
Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Wed Feb 03, 2016 8:37 pm
Reply with quote

look at the isredit RESET command
Back to top
View user's profile Send private message
Tarique Anwer

New User


Joined: 27 Jan 2016
Posts: 10
Location: India

PostPosted: Wed Feb 03, 2016 8:46 pm
Reply with quote

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
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Feb 03, 2016 11:10 pm
Reply with quote

Quote:
using the RESET command would remove the labels from the display,

Read more: ibmmainframes.com/viewtopic.php?t=64760&highlight=&sid=3d09a6bf877143d53f0e2ee7cbc09281#ixzz3z7yNiDSv

As an aside, RESET will not remove labels, but RESET LABELS will.
Back to top
View user's profile Send private message
Tarique Anwer

New User


Joined: 27 Jan 2016
Posts: 10
Location: India

PostPosted: Sat Feb 06, 2016 7:33 pm
Reply with quote

Thanks for the correction Terry.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
Search our Forums:

Back to Top