View previous topic :: View next topic
|
Author |
Message |
vpr_118 Warnings : 1 New User
Joined: 07 Apr 2008 Posts: 64 Location: chennai
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
edit macro is exactly that, EDIT macro
Gerry |
|
Back to top |
|
|
vpr_118 Warnings : 1 New User
Joined: 07 Apr 2008 Posts: 64 Location: chennai
|
|
|
|
So there is no way to use edit macro over a dataset in browse mode? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Correct, no way.
O. |
|
Back to top |
|
|
vpr_118 Warnings : 1 New User
Joined: 07 Apr 2008 Posts: 64 Location: chennai
|
|
|
|
How does QW option work?
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
vpr_118 Warnings : 1 New User
Joined: 07 Apr 2008 Posts: 64 Location: chennai
|
|
|
|
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 |
|
|
vpr_118 Warnings : 1 New User
Joined: 07 Apr 2008 Posts: 64 Location: chennai
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2546 Location: Silicon Valley
|
|
|
|
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 |
|
|
|