Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

ISREDIT - Position Cursor on the Command Line

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: ISREDIT - Position Cursor on the Command Line
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    Post subject: Reply to: ISREDIT - Position Cursor on the Command Line
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    Post subject:
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    Post subject:
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: 1238
Location: Richfield, MN, USA

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

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

Read more: http://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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am
No new posts SDSF Command Avtrix CLIST & REXX 4 Fri Sep 30, 2016 11:13 am
No new posts How to find a CICS resource used in C... Arunkumar Chandrasekaran CICS 8 Thu Sep 29, 2016 1:45 pm
No new posts COMPARE command sivatechdrive TSO/ISPF 7 Fri Sep 16, 2016 4:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us