Page 1 of 2

How to start macro from ispf primary option menu

PostPosted: Sun Aug 15, 2010 4:15 am
by haribo
Hello out there :-)

Let me say that I'm quite new to the mainframe world first. So here's my question:

Is it possible to start a macro right from the first ispf panel's option line (primary option menu)? I guess there is, but how can i do that?

I just wrote my first Edit-macro and it works fine as long as I have set ALTLIB by hand. So I guess it can't be much harder to do the same thing with ispf itself!?

Greetz,
haribo

Re: How to start macro from ispf primary option menu

PostPosted: Sun Aug 15, 2010 5:08 am
by haribo
That's a pity! I just wanted to make browsing through ispf a bit easier. My goal was to write a macro that would bring me to the ds-listing of "foobar*" when I just entered sth. like "home" or so in the command line. Do you have any idea how to archieve that without having to enter a 20+ chars line like "tso call bla blubb ..." or similar?

Re: How to start macro from ispf primary option menu

PostPosted: Sun Aug 15, 2010 5:11 am
by MrSpock
Wow. Something happened to my post ....

Don't forget, you have to have EDIT running in order for an ISPF Edit Macro to be invoked. You can do this on any ISPF command line:

Option ===> EPDF 'MY.DATA.SET' MACRO(MYMACRO)

Re: How to start macro from ispf primary option menu

PostPosted: Sun Aug 15, 2010 5:13 am
by MrSpock
Are we mixing up terminologies? By macro, you mean an ISPF Edit Macro, correct? Or, are you trying to create your own ISPF command?

Re: How to start macro from ispf primary option menu

PostPosted: Sun Aug 15, 2010 5:17 am
by haribo
yeah... i was just wondering... ok. So the reply to your post comes above. That's weird - just like the mainframe - so it day by day it makes more sense to me ;-)

So again, can I somehow install command abbreviations in ispf? So that typing e.g. "home" would bring me directly to "DSLIST FOOBAR*"?

Re: How to start macro from ispf primary option menu

PostPosted: Sun Aug 15, 2010 5:23 am
by haribo
MrSpock wrote:Are we mixing up terminologies? By macro, you mean an ISPF Edit Macro, correct? Or, are you trying to create your own ISPF command?


ISPF Edit Macro, yes. I just wasn't sure if they can only be used with edit or not.
It should just save me some typing. But that doesn't seem to be conducive as i would have to type even more using macros.

Just like I said, I only want a "shortcut" to a "dslist 'userid.foo.bar'"

Re: How to start macro from ispf primary option menu

PostPosted: Sun Aug 15, 2010 5:42 am
by dick scherrer
Hello and welcome to the forum,

You might consider setting up a script/macro on your pc - either with the terminal emullator or with some "hotkeys" type of pc tool.

The result would be the shortcut, but the implementation would be local not on the mainframe. . .

Re: How to start macro from ispf primary option menu

PostPosted: Sun Aug 15, 2010 7:19 am
by haribo
I think I will give that a try. Anyway, I'm almost apt to open a bugreport for that missing feature :D This seems so vital for me that I can hardly believe there is no way to realize that on the mainframe itself.
I keep my eyes open. Maybe there's an anfractuous way to do it :ugeek:

Thanks for your fast responses!

Re: How to start macro from ispf primary option menu

PostPosted: Sun Aug 15, 2010 10:48 am
by NicC
It probably takes fewer keystrokes to get to your output by using the facilities of ISPF than it takes to enter a command name. I can get to my output with which translates to "Go to SDSF and go to the held output queue". To get back to the main menu - PF4

Re: How to start macro from ispf primary option menu

PostPosted: Sun Aug 15, 2010 11:11 am
by dick scherrer
Hello,

I missed the part where there was a question about getting to held output. . . :?

d