IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Not able to execute CMD in &ZSEL


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
maki_psg

New User


Joined: 28 Jan 2010
Posts: 47
Location: India

PostPosted: Mon Feb 04, 2013 6:21 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Feb 04, 2013 6:23 pm
Reply with quote

how do You <show> the panel ...

SELECT or DISPLAY ???

meditate on the difference between the two
Back to top
View user's profile Send private message
maki_psg

New User


Joined: 28 Jan 2010
Posts: 47
Location: India

PostPosted: Mon Feb 04, 2013 7:06 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Mon Feb 04, 2013 7:12 pm
Reply with quote

just what I was thinking icon_cool.gif

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
View user's profile Send private message
maki_psg

New User


Joined: 28 Jan 2010
Posts: 47
Location: India

PostPosted: Sat Feb 09, 2013 8:44 pm
Reply with quote

enrico-sorichetti wrote:
just what I was thinking icon_cool.gif

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 icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Fetch data from programs execute (dat... DB2 3
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
No new posts Evaluate variable to execute a jcl step JCL & VSAM 3
No new posts Execute REXX on logon with ISPF CLIST & REXX 3
Search our Forums:

Back to Top