MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Placing Cursor at Command

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
moyeenkhan
Beginner


Joined: 04 Dec 2002
Posts: 64
Topics: 21

PostPosted: Fri Sep 18, 2009 10:24 am    Post subject: Placing Cursor at Command Reply with quote

I have written a rexx exec which calls for user to input data from an Input Panel. Depending on the data, I perform 'VIEW' of a dataset. The program works fine but when the user exits the main Panel, the cursor is not at Command prompt.
How can I force the cursor to be at command prompt when I exit the rexx program.
Thanks
Back to top
View user's profile Send private message Send e-mail
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Fri Sep 18, 2009 2:56 pm    Post subject: Reply with quote

Not enough information. How are you doing things? Is the "main panel" a selection panel (ISPEXEC SELECT PANEL()) or a display panel (ISPEXEC SELECT DISPLAY PANEL()). There are many ways to create the process you are describing so you need to describe what you are doing and exactly where the unwanted behavior is.
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
moyeenkhan
Beginner


Joined: 04 Dec 2002
Posts: 64
Topics: 21

PostPosted: Fri Sep 18, 2009 3:13 pm    Post subject: Reply with quote

I am using ISPEXEC Display Panel(zPanelName) to display the panel using TSO.
I issue TSO mYRexx to display the panel. Once on this panel I have three choices. If I select anyof these choices I close the panel and go to 'VIEW' mode (a differant dataset). After viewing when I quit the VIEW, I am in TSO where I used The TSO command. It is when I exit this Panel, I find that the cursor is NOT at command prompt. It is anywhere on the screen. Every time it is in a differant spot. I have to press HOME key to put in command prompt area. The Rexx program is working fine except for the cursor issue.

Thanks
Back to top
View user's profile Send private message Send e-mail
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Fri Sep 18, 2009 4:51 pm    Post subject: Reply with quote

You can use the CURSOR(field-name) parameter of DISPLAY command
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Sat Sep 19, 2009 4:24 am    Post subject: Reply with quote

Have you tried to exit the view macro issuing a return code 1.

I have used this in edit macros before, although not in the same fashion as your requirement. Give it a go and see what happens as I don't have access to the big box until Monday.
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
moyeenkhan
Beginner


Joined: 04 Dec 2002
Posts: 64
Topics: 21

PostPosted: Mon Sep 21, 2009 8:12 am    Post subject: Reply with quote

Did try both but still the same problem exists. Thanks for replies.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group