View previous topic :: View next topic
|
Author |
Message |
maki_psg
New User
Joined: 28 Jan 2010 Posts: 47 Location: India
|
|
|
|
Hi,
I was trying to execute a command (invoking a REXX program in one of the options) using ISPF dialog manager. However, the expected command did not work. In the below code snippet, SUBPR03A and SUBPR03B are rexx programs. Though these programs are available in SYSEXEC library, the programs were not invoked when I enter in command prompt.
Code: |
)ATTR
% TYPE(TEXT) INTENS(HIGH) COLOR(WHITE)
+ TYPE(TEXT) INTENS(LOW) COLOR(BLUE)
_ TYPE(INPUT) INTENS(HIGH) COLOR(RED)
)BODY
% COMMAND ==> _ZCMD
%
% 1 --> TO EXEC SUB PROGRAM 3A
% 2 --> TO EXEC SUB PROGRAM 3B
%
%
%
)INIT
)PROC
&ZSEL = TRANS( TRUNC (&ZCMD,' ')
1,'CMD(%SUBPR03A)'
2,'CMD(%SUBPR03B)'
X,'EXIT'
' ',' '
*,'?' )
)END
|
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
how do You <show> the panel ...
SELECT or DISPLAY ???
meditate on the difference between the two |
|
Back to top |
|
|
maki_psg
New User
Joined: 28 Jan 2010 Posts: 47 Location: India
|
|
|
|
enrico-sorichetti wrote: |
how do You <show> the panel ...
SELECT or DISPLAY ???
meditate on the difference between the two |
Hi Enrico,
I had used "DISPLAY PANEL(panel-name)" to invoke the main panel. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
just what I was thinking
what happened when You looked at the ISPF manuals to see the
DISPLAY vs. SELECT behavior
in short
DISPLAY
does nothing ... displays the panel passing back and forth the value of the variables defined in the panel
SELECT does not let YOU do anything ...
ISPF takes care of everithig
just go to option 7
and try both
Code: |
1 Functions Invoke dialog functions/selection panel
2 Panels Display panels
|
and see what happens |
|
Back to top |
|
|
maki_psg
New User
Joined: 28 Jan 2010 Posts: 47 Location: India
|
|
|
|
enrico-sorichetti wrote: |
just what I was thinking
what happened when You looked at the ISPF manuals to see the
DISPLAY vs. SELECT behavior
in short
DISPLAY
does nothing ... displays the panel passing back and forth the value of the variables defined in the panel
SELECT does not let YOU do anything ...
ISPF takes care of everithig
just go to option 7
and try both
Code: |
1 Functions Invoke dialog functions/selection panel
2 Panels Display panels
|
and see what happens |
Apologies for the late reply...
I have used both the options and could see the differences.. When I chose SELECTION PANEL(Option 1), I was able to navigate to other screens which I had coded. However, when I chose DISPLAY PANEL(option 2), I could not navigate.
Thanks for your help, Enrico |
|
Back to top |
|
|
|