Hi,
If you have a PDS file let say: USERID.AAA.TEST
then create a member inside let say: PANEL1 with the content:
)PANEL
/* PANEL 1 CREATED */
)BODY WINDOW(50,5)
+ PANEL1 +
+ THIS IS THE TEST PANEL
+
+ % ENTER YOUR NAME PLEASE => _URNAME +
)END
The panel is created with a field input: URNAME
then create a member inside let say: REXX1 with the content:
/* rexx to display panel1 */
"ispexec libdef ispplib dataset id('USERID.AAA.TEST')"
/*show*/
"ispexec addpop"
"ispexec display panel(PANEL1)"
/*F3 key to exit*/
if rc\=0 then do
say 'The panel is cancelled'
exit
end
else
/*we will show the input field entry */
say 'your name is' URNAME
exit
This REXX show the window and waits for a name or for a F3 key: If a value is entered the it shows this value and exit, if a F3 key is used the message will be: The panel is cancelled