Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Not able to execute CMD in &ZSEL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Not able to execute CMD in &ZSEL
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Mon Feb 04, 2013 6:23 pm    Post subject: Reply to: Not able to execute CMD in &ZSEL
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    Post subject: Re: Reply to: Not able to execute CMD in &ZSEL
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Mon Feb 04, 2013 7:12 pm    Post subject: Reply to: Not able to execute CMD in &ZSEL
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    Post subject: Re: Reply to: Not able to execute CMD in &ZSEL
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts execute APP if they are not ADDRESS T... italo_pm CLIST & REXX 3 Fri Aug 12, 2016 2:15 am
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
No new posts CEXEC not able to execute if no SLINE... boyti ko CLIST & REXX 2 Wed Apr 13, 2016 4:31 pm
No new posts CALL MACRO EXECUTE FORM - Setting the... sudarshan.srivathsav PL/I & Assembler 7 Tue Feb 09, 2016 10:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us