IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

Can we write a MACRo for Browse panel or SAR Panel


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

Active User


Joined: 24 May 2013
Posts: 154
Location: INDIA

PostPosted: Mon Aug 11, 2014 7:02 pm
Reply with quote

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

Active Member


Joined: 06 Jul 2010
Posts: 692
Location: Whitby, ON, Canada

PostPosted: Mon Aug 11, 2014 10:53 pm
Reply with quote

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

Active User


Joined: 24 May 2013
Posts: 154
Location: INDIA

PostPosted: Mon Aug 11, 2014 11:23 pm
Reply with quote

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

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Mon Aug 11, 2014 11:49 pm
Reply with quote

Note that "panel is displayed by ISPF" and "panel ID begins with 'ISP'" have nothing to do with each other.
Back to top
View user's profile Send private message
thesumitk

Active User


Joined: 24 May 2013
Posts: 154
Location: INDIA

PostPosted: Tue Aug 12, 2014 3:28 pm
Reply with quote

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

Global Moderator


Joined: 01 Sep 2006
Posts: 2206
Location: Silicon Valley

PostPosted: Tue Aug 12, 2014 9:04 pm
Reply with quote

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

Active Member


Joined: 06 Jul 2010
Posts: 692
Location: Whitby, ON, Canada

PostPosted: Wed Aug 13, 2014 12:25 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> TSO/ISPF
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts Hexadecimal Group compare and write t... DFSORT/ICETOOL 5
No new posts Break a record into fields, each fiel... SYNCSORT 2
No new posts How to setup MQ panel TSO/ISPF 3
No new posts ISPF Panel commands DDLIST /LISTBOX TSO/ISPF 11
No new posts Unable to scroll in REXX panel CLIST & REXX 4

Back to Top