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
 

 

Can we write a MACRo for Browse panel or SAR Panel

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

Active User


Joined: 24 May 2013
Posts: 129
Location: INDIA

PostPosted: Mon Aug 11, 2014 7:02 pm    Post subject: Can we write a MACRo for Browse panel or SAR Panel
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: 641
Location: Whitby, ON, Canada

PostPosted: Mon Aug 11, 2014 10:53 pm    Post subject:
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: 129
Location: INDIA

PostPosted: Mon Aug 11, 2014 11:23 pm    Post subject:
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: 1738
Location: Bloomington, IL

PostPosted: Mon Aug 11, 2014 11:49 pm    Post subject:
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: 129
Location: INDIA

PostPosted: Tue Aug 12, 2014 3:28 pm    Post subject:
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

Senior Member


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

PostPosted: Tue Aug 12, 2014 9:04 pm    Post subject: Reply to: Can we write a MACRo for Browse panel or SAR Panel
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: 641
Location: Whitby, ON, Canada

PostPosted: Wed Aug 13, 2014 12:25 am    Post subject: Re: Reply to: Can we write a MACRo for Browse panel or SAR P
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    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 Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
No new posts Error IEC161I 052(009,XXXRS00)-084 wh... amitc23 JCL & VSAM 10 Wed Oct 12, 2016 5:00 pm
No new posts how to DYNAMICALLY write sort cond to... mohamedmubee COBOL Programming 13 Fri Aug 26, 2016 11:46 pm
No new posts Rexx Panel Validation ajithajt CLIST & REXX 6 Sun Jul 17, 2016 10:50 pm
No new posts PCOMM macro to call another PCOMM macro boyti ko All Other Mainframe Topics 4 Tue Jul 12, 2016 4:30 pm


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