| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
vpr_118
Joined: 07 Apr 2008
Posts: 46
Location: chennai
|
| Posted: Tue Sep 02, 2008 11:02 am Post subject: How to execute edit macro on dataset opened in browse mode |
|
|
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
Joined: 28 Jul 2006
Posts: 664
|
| Posted: Tue Sep 02, 2008 11:11 am Post subject: |
|
|
Hi,
edit macro is exactly that, EDIT macro
Gerry |
|
| Back to top |
|
vpr_118
Joined: 07 Apr 2008
Posts: 46
Location: chennai
|
| Posted: Tue Sep 02, 2008 11:16 am Post subject: Reply to: How to execute edit macro on dataset opened in bro |
|
|
| So there is no way to use edit macro over a dataset in browse mode? |
|
| Back to top |
|
ofer71
Joined: 27 Dec 2005
Posts: 1962
Location: Israel
|
| Posted: Tue Sep 02, 2008 12:13 pm Post subject: |
|
|
Correct, no way.
O. |
|
| Back to top |
|
vpr_118
Joined: 07 Apr 2008
Posts: 46
Location: chennai
|
| Posted: Tue Sep 02, 2008 3:10 pm Post subject: Reply to: How to execute edit macro on dataset opened in bro |
|
|
How does QW option work? :roll:
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
Joined: 28 Jul 2006
Posts: 664
|
| Posted: Tue Sep 02, 2008 3:39 pm Post subject: |
|
|
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
Joined: 27 Dec 2005
Posts: 1962
Location: Israel
|
| Posted: Tue Sep 02, 2008 3:51 pm Post subject: |
|
|
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
Joined: 07 Apr 2008
Posts: 46
Location: chennai
|
| Posted: Fri Sep 05, 2008 2:32 pm Post subject: Reply to: How to execute edit macro on dataset opened in bro |
|
|
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
Joined: 07 Apr 2008
Posts: 46
Location: chennai
|
| Posted: Fri Sep 05, 2008 3:11 pm Post subject: Reply to: How to execute edit macro on dataset opened in bro |
|
|
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
Joined: 01 Sep 2006
Posts: 536
Location: work
|
| Posted: Fri Sep 05, 2008 10:14 pm Post subject: Reply to: How to execute edit macro on dataset opened in bro |
|
|
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 |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|