How to start macro from ispf primary option menu



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

How to start macro from ispf primary option menu

Postby haribo » Sun Aug 15, 2010 4:15 am

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
haribo
 
Posts: 5
Joined: Sun Aug 15, 2010 4:05 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to start macro from ispf primary option menu

Postby haribo » Sun Aug 15, 2010 5:08 am

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?
haribo
 
Posts: 5
Joined: Sun Aug 15, 2010 4:05 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to start macro from ispf primary option menu

Postby MrSpock » Sun Aug 15, 2010 5:11 am

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)
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: How to start macro from ispf primary option menu

Postby MrSpock » Sun Aug 15, 2010 5:13 am

Are we mixing up terminologies? By macro, you mean an ISPF Edit Macro, correct? Or, are you trying to create your own ISPF command?
User avatar
MrSpock
Global moderator
 
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: How to start macro from ispf primary option menu

Postby haribo » Sun Aug 15, 2010 5:17 am

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*"?
haribo
 
Posts: 5
Joined: Sun Aug 15, 2010 4:05 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to start macro from ispf primary option menu

Postby haribo » Sun Aug 15, 2010 5:23 am

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'"
haribo
 
Posts: 5
Joined: Sun Aug 15, 2010 4:05 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to start macro from ispf primary option menu

Postby dick scherrer » Sun Aug 15, 2010 5:42 am

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. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: How to start macro from ispf primary option menu

Postby haribo » Sun Aug 15, 2010 7:19 am

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!
haribo
 
Posts: 5
Joined: Sun Aug 15, 2010 4:05 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to start macro from ispf primary option menu

Postby NicC » Sun Aug 15, 2010 10:48 am

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
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: How to start macro from ispf primary option menu

Postby dick scherrer » Sun Aug 15, 2010 11:11 am

Hello,

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

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Next

Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post