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

How to execute edit macro on dataset opened in browse mode


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

New User


Joined: 07 Apr 2008
Posts: 64
Location: chennai

PostPosted: Tue Sep 02, 2008 11:02 am
Reply with quote

Hi,

I want to use a edit macro on a dataset in browse mode.
Actually,
the dataset is huge. Even if i try to open it in view mode, it ends up in browse mode.

We use "QW" option for help. Hope the same logic can be used for my query.

Can any one suggest me a way out of this.?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Sep 02, 2008 11:11 am
Reply with quote

Hi,

edit macro is exactly that, EDIT macro


Gerry
Back to top
View user's profile Send private message
vpr_118
Warnings : 1

New User


Joined: 07 Apr 2008
Posts: 64
Location: chennai

PostPosted: Tue Sep 02, 2008 11:16 am
Reply with quote

So there is no way to use edit macro over a dataset in browse mode?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Sep 02, 2008 12:13 pm
Reply with quote

Correct, no way.

O.
Back to top
View user's profile Send private message
vpr_118
Warnings : 1

New User


Joined: 07 Apr 2008
Posts: 64
Location: chennai

PostPosted: Tue Sep 02, 2008 3:10 pm
Reply with quote

How does QW option work? icon_rolleyes.gif
If we type QW in command line and press enter on some position in screem,
it shows the screen containing the informations about the field correspoding to the cursor location where we pressed "Enter".

Hope QW is working in browse mode only? Isnt it?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Sep 02, 2008 3:39 pm
Reply with quote

Hi,

QW is invoked from anywhere in ISPF, the QW command invokes MVS/QuickRef as a "pop-up" application. so I don't understand what you mean by
Quote:
Hope QW is working in browse mode only? Isnt it?


Gerry
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Sep 02, 2008 3:51 pm
Reply with quote

AFAIK, QW uses ZSCREEND & ZSCREENI to read the content of the screen, even in BROWSE mode. Just remember that you don't have to be in edit-macro mode (ISREDIT MACRO) in order to read a screen's content.

O.
Back to top
View user's profile Send private message
vpr_118
Warnings : 1

New User


Joined: 07 Apr 2008
Posts: 64
Location: chennai

PostPosted: Fri Sep 05, 2008 2:32 pm
Reply with quote

ZSCREEND & ZSCREENI

Thanks for providing me with Both the above parameters. If i use the above two parameters. Will i get the correct column position i.e position where "enter" is presses.

My aim is to get the column position and read content present in the same row present in say 10th position.
Will it give me back the value in 10th position, in case when i press enter in 1050 position (files length is 1055).
Back to top
View user's profile Send private message
vpr_118
Warnings : 1

New User


Joined: 07 Apr 2008
Posts: 64
Location: chennai

PostPosted: Fri Sep 05, 2008 3:11 pm
Reply with quote

Hi please find the details below
ADDRESS ISPEXEC
"VGET (ZSCREENC)" ; zc = zscreenc /* cursor pos offset, from (0,0) */

what does position 0,0 mean.
does 0,0 mean -- the top left position of out screen or does it refer the position where the dataset starts.?

"VGET (ZSCREENI)" ; zi = zscreeni /* logical screen info (contents)*/
what does logical scrren mean.?

"VGET (ZSCREENW)" ; zw = zscreenw /* screen width */
what is the use of screen width?

please throw some lights on the same.[/list]
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Fri Sep 05, 2008 10:14 pm
Reply with quote

These variables have nothing to do with dataset names.

Say your screen is configured for 24x80 dimension. That is 1920 bytes.

zscreeni: is a buffer that is up to 1920 bytes long. Each line of the screen is appended back to back into a long character string. (trailing blanks seem to be removed, so it might be less than 1920 characters)

zscreenc: is a numeric offset from 0 to 1920 (or maybe 1919??) of where the cursor was within zscreeni. 0 is top left.

zscreenw: is the screen width, so that you can figure out how to break up the zscreeni buffer into lines. It is not always 80! Some people use different size screen dimensions.
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 HILITE on Browse mode? TSO/ISPF 2
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
Search our Forums:

Back to Top