Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10326
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: 10326
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
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us