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
 

 

How to execute edit macro on dataset opened in browse mode

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: How to execute edit macro on dataset opened in browse mode
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: 1703
Location: Australia

PostPosted: Tue Sep 02, 2008 11:11 am    Post subject:
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    Post subject: Reply to: How to execute edit macro on dataset opened in bro
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: 2360
Location: Israel

PostPosted: Tue Sep 02, 2008 12:13 pm    Post subject:
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    Post subject: Reply to: How to execute edit macro on dataset opened in bro
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: 1703
Location: Australia

PostPosted: Tue Sep 02, 2008 3:39 pm    Post subject:
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: 2360
Location: Israel

PostPosted: Tue Sep 02, 2008 3:51 pm    Post subject:
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    Post subject: Reply to: How to execute edit macro on dataset opened in bro
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    Post subject: Reply to: How to execute edit macro on dataset opened in bro
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

Senior Member


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

PostPosted: Fri Sep 05, 2008 10:14 pm    Post subject: Reply to: How to execute edit macro on dataset opened in bro
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    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 What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts execute APP if they are not ADDRESS T... italo_pm CLIST & REXX 3 Fri Aug 12, 2016 2:15 am


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