Page 1 of 1

Question about ISPF start service

PostPosted: Wed May 08, 2013 8:35 am
by marshall25
hi all,

i just read the ISPF start service for ISPEXEC SELECT PGM(ISPSTRT) PARM(some_dialog),

i tested,
ISPEXEC SELECT PGM(ISPSTRT) PARM(3;4)
it worked to goto 3.4 in new screen.

i don't know what kind of 'some_dialog' can be used in PARM, if i want to goto 3.4 and enter, how can i write the dialog?

Re: Question about ISPF start service

PostPosted: Wed May 08, 2013 11:43 am
by Stefan
The program ISPSTRT creates a new (splitted) screen similar to the SPLIT command. The parameter can be used to issue any command on this newly created screen and simulate the ENTER key. So you are able to start any application in a new screen programmatically. ISPSTRT is not about "writing a dialog" but gives you the starting point for invoking a program, a command, or select a panel option.

Re: Question about ISPF start service

PostPosted: Wed May 08, 2013 3:00 pm
by marshall25
Stefan wrote:ISPSTRT is not about "writing a dialog" but gives you the starting point for invoking a program, a command, or select a panel option.


what is the command if i want to simulater 'enter' function in ISPF?

Re: Question about ISPF start service

PostPosted: Wed May 08, 2013 6:26 pm
by Pedro
what is the command if i want to simulater 'enter' function in ISPF?

Can you elaborate on what you want to do? And where you want to do it?

Re: Question about ISPF start service

PostPosted: Thu May 09, 2013 8:09 am
by marshall25
Pedro wrote:Can you elaborate on what you want to do? And where you want to do it?


what i want to do is i want to write a rexx to simulater 'enter' key in ISPF, i can used START SERVICE to start new screen 3.4(panelid = ISRUDLP), and i want add 'enter' key, after issue the rexx to start new screen , it will show 3.4+enter(paneilid = ISRUDSL0)
where i want to do is in ISPF envir, like under 3.4 then enter

Re: Question about ISPF start service

PostPosted: Thu May 09, 2013 5:42 pm
by NicC
Totally unclear and not sure why you woukd want to do this anyway.

Re: Question about ISPF start service

PostPosted: Fri May 10, 2013 2:07 am
by Pedro
The DSLIST command does exactly what you are trying to do.

Examine the ISP command table in ISPF option 3.9 and study the definition of DSLIST. You want to replicate the exact same SELECT statement into your rexx program. Except, replace &ZPARM with the dataset prefix of your choosing.

I did something similar, but of course, I did not follow my own advice. I actually issued the DSLIST command:

/*-------------------------------------------------------------------*/
/* view DSLIST of the superc files                                   */
/*-------------------------------------------------------------------*/
dslist_supr:                                                           
ispfcmd = "DSLIST  '"|| superc_dsn || "'"                                 
"DISPLAY PANEL(aaaaaaa) COMMAND(ISPFCMD)"                             
return