IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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: 156
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: 765
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: 156
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: 156
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: 2547
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: 765
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts HILITE on Browse mode? TSO/ISPF 2
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts PRINTOUT macro PL/I & Assembler 0
Search our Forums:

Back to Top