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
 

 

How to get the line from ISPF Panel

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Martin Han

New User


Joined: 23 Jun 2011
Posts: 6
Location: China

PostPosted: Sat Jul 16, 2011 4:25 pm    Post subject: How to get the line from ISPF Panel
Reply with quote

Hi,

I am looking for a way to get a line when cursor is placed on any ISPF Panel. I tired to code an ISPF Edit Marco. I'm using the following code in REXX.

"ISREDIT (CURRLINE) = LINE .ZCSR".

But it appears that the ISPF Edit Marco can not support ISPF Panel. Because, it is working well when the cursor is placed on the dataset in View/Edit mode. But nothng will be returned when the cursor is placed on the ISPF Panel. I would like to know whether there is another way to get the line from ISPF Panel ?
Back to top
View user's profile Send private message

prino

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

PostPosted: Sat Jul 16, 2011 5:16 pm    Post subject:
Reply with quote

Which PHB gave you this requirement????
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1713
Location: UK

PostPosted: Sat Jul 16, 2011 5:32 pm    Post subject:
Reply with quote

An EDIT macro is an EDIT macro and can only be used in EDIT. There may be some ISPF panel variables that hold the current cursor position which you could then use to find which field in the panel your cursor is in then read the variable associated with that field.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sat Jul 16, 2011 7:02 pm    Post subject: Reply to: How to get the line from ISPF Panel
Reply with quote

an <edit> macro supporting panels would not be an <edit> macro any longer...
it would be a <panel> <macro> icon_cool.gif
Back to top
View user's profile Send private message
Martin Han

New User


Joined: 23 Jun 2011
Posts: 6
Location: China

PostPosted: Sat Jul 16, 2011 7:17 pm    Post subject: Reply to: How to get the line from ISPF Panel
Reply with quote

Thanks Prino & Nic..

The requirement raised from business side.. they probably have no much technical knowledge when considering the requirement. but we do not need to care about this too much..

I also checked the Dialog Developer’s Guide and Reference to find the ISPF Panel variables that hold the current cursor/line. but nothing found for valuable information.

Much appreciate if you can provide some samples or some link for related manual.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sat Jul 16, 2011 7:44 pm    Post subject: Reply to: How to get the line from ISPF Panel
Reply with quote

Quote:
but we do not need to care about this too much..


You should, how are You going to defend yourself from stupid requirements like this one ?

here is the link to the mother of all IBM manuals
http://www-03.ibm.com/systems/z/os/zos/bkserv/index.html

You are free to waste Your time on an impossible requirement,
do not expect we waste our on it,
remember, answering is
on voluntary basis
our own time
interest of the topic

well, the requirement puts the topic pretty low in the answering list icon_cool.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7905
Location: Bellevue, IA

PostPosted: Sat Jul 16, 2011 8:14 pm    Post subject:
Reply with quote

Quote:
The requirement raised from business side.. they probably have no much technical knowledge when considering the requirement. but we do not need to care about this too much..
This is, quite possibly, the single worst statement I have ever read on this forum. If YOU don't need to care too much about the technical requirements, who does? As a professional IT person, part of YOUR responsibility is to explain when requirements are given that cannot be implemented or would cost too much to implement. If you don't do that, you are not doing your job.

I recommend we lock this topic since it is obvious that there's no need to care about it any longer.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sat Jul 16, 2011 9:00 pm    Post subject:
Reply with quote

Quote:
I recommend we lock this topic since it is obvious that there's no need to care about it any longer.


It does serve the purpose of being
a good example
of a
bad example
Back to top
View user's profile Send private message
Martin Han

New User


Joined: 23 Jun 2011
Posts: 6
Location: China

PostPosted: Sat Jul 16, 2011 9:10 pm    Post subject: Reply to: How to get the line from ISPF Panel
Reply with quote

Sorry for

I’ve got the answer for my question. 'it is very hard/ impossible to be implemented"

I have discussed the requirement with business side again. And SORRY for I caused the misunderstanding for the communication. I just afraid to cuase more confusion if I specify more business requrement. I agree with you I should consider whether the requirement can be implemented or not.

Thanks alot.
Back to top
View user's profile Send private message
Martin Han

New User


Joined: 23 Jun 2011
Posts: 6
Location: China

PostPosted: Sun Jul 17, 2011 6:37 am    Post subject: Reply to: How to get the line from ISPF Panel
Reply with quote

Hi,

I found some valuable information in IBM manuals that the system variables, ZSCREENI,ZSCREENC, can captured the current screen and cursor. I'm using the following code and it is working fine to get the information from ISPF Panel.

Code:
Address ISPEXEC
'VGET (ZSCREENI,ZSCREENC,ZENVIR)'
SQLCODE = Substr(ZSCREENI,ZSCREENC+1,3)   


Thanks a lot
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sun Jul 17, 2011 9:36 am    Post subject: Reply to: How to get the line from ISPF Panel
Reply with quote

Good to hear it is working for you - thank you for letting us know icon_smile.gif

d
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 ISPF program to set SCRNAME prino TSO/ISPF 5 Fri Sep 30, 2016 2:18 pm
No new posts I am unable to use SWAPBAR ON command... mrsidhu12 TSO/ISPF 3 Thu Sep 01, 2016 1:10 pm
No new posts Insert Lines in JCL with Rexx after a... Willy Jensen CLIST & REXX 3 Tue Aug 30, 2016 4:18 pm
No new posts Rexx Panel Validation ajithajt CLIST & REXX 6 Sun Jul 17, 2016 10:50 pm
No new posts ISPF Tables Creation newsysprg TSO/ISPF 6 Wed Jul 13, 2016 2:21 pm


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