View previous topic :: View next topic
|
Author |
Message |
thesumitk
Active User
Joined: 24 May 2013 Posts: 156 Location: INDIA
|
|
|
|
Hi All,
My Requirement is like below
I would go to SAR ( CA View SAR) panel and select any job go to the JESJCL and here if I put the cursor on any line which contains the Data set name the Macro will open that file directly by using that Macro .. I will assign a Key to the macro so that when ever I press it it will open that file ..
I know It can be done for View and Edit Mode of any file but Since SAR ia always in Browse mode so Not sure how to handle it ..
Can some one please suggest or share his experience ?
Thanks in Advance !! |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
Does "CA View SAR" use ISPF to display its panels? If so, then the answer is 'yes, with some effort'. ISPF stores the current screen image and the cursor position in variables ZSCREENI and ZSCREENC, respectively. |
|
Back to top |
|
|
thesumitk
Active User
Joined: 24 May 2013 Posts: 156 Location: INDIA
|
|
|
|
Thanks for your response !!!
I use the below rexx code sometimeto navigate thru its panel
/* rexx */
OPT = "M;SAR;=S DMP901BT"
ADDRESS ISPEXEC "SELECT PGM(ISPSTRT) SUSPEND PARM(&OPT)"
and when I see the SAR panel id its does not start with ISP
It is SARPISV2 |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Note that "panel is displayed by ISPF" and "panel ID begins with 'ISP'" have nothing to do with each other. |
|
Back to top |
|
|
thesumitk
Active User
Joined: 24 May 2013 Posts: 156 Location: INDIA
|
|
|
|
HI Don,
I get a confirmation now that SAR uses the ISPF services for Displaying its panels.
Will I be able to write the macro which will be able to pick the values form SAR in browse mode?
Can you show me a way please?
Thanks |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
Can you show me a way please? |
See Don Leahy's post at Mon Aug 11, 2014 10:23 pm
You can write a rexx program that uses those variables to get the contents of the current screen. It is not an editor macro, but you should be able to the function you describe. |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
Pedro wrote: |
Quote: |
Can you show me a way please? |
See Don Leahy's post at Mon Aug 11, 2014 10:23 pm
You can write a rexx program that uses those variables to get the contents of the current screen. It is not an editor macro, but you should be able to the function you describe. |
This normally where I would point the TS to the great Doug Nadel's brilliant VCURSOR tool. Unfortunately, Mr. Nadel removed all of the MVS content on his web site when he retired from IBM. |
|
Back to top |
|
|
|