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
 

 

How to display data in command prompt

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
shivadravid

New User


Joined: 16 Jan 2014
Posts: 2
Location: India

PostPosted: Sun Jan 19, 2014 10:27 am    Post subject: How to display data in command prompt
Reply with quote

I have a requirement in REXX which is similar to RETP command in that when the REXX is called it will display a popup panel with list of commands as options and the user selects the desired option and the popup closes and the selected option is displayed in the command line, I did the coding till user selects the option and stored the selected option in a variable once the popup panel closes,now i want to display this variable in command line as RETP does, Any help is appreciated!!!!
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1717
Location: UK

PostPosted: Mon Jan 20, 2014 4:52 am    Post subject: Reply to: How to display data in command prompt
Reply with quote

You should not post the same topic on multiple forums. Which topic do you want locked/deleted? This one or the one on 'another' forum?
Back to top
View user's profile Send private message
sureshpathi10

Active User


Joined: 03 May 2010
Posts: 154
Location: Kuala Lumpur

PostPosted: Mon Jan 20, 2014 7:47 am    Post subject:
Reply with quote

Hi Shiva,

Have you try to assign value to "ZCMD" system variable?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1717
Location: UK

PostPosted: Mon Jan 20, 2014 7:01 pm    Post subject: Reply to: How to display data in command prompt
Reply with quote

Quote:
Have you try to assign value to "ZCMD" system variable?

I suggested that on the other forum - one of the reasons for not posting across forums - wastes everybody's time.
I then tried it myself - it does not work. I guess zcmd get initialized on redisplay of the panel. And for what he wants a selection from a menu panel would be far more appropriate, standard, understandable and reasonable.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1717
Location: UK

PostPosted: Mon Jan 20, 2014 8:09 pm    Post subject: Reply to: How to display data in command prompt
Reply with quote

Update: having got back to work after lunch I did a little experimtent and you can assign a value to ZCMD and have it displayed. My original test was using an existing panel and that was initialising ZCMD in the INIT section. However, pressing enter did not get the error that I was expecting (unknown command) but continued processing the rexx program that displayed the panel. Experiments continue.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Mon Jan 20, 2014 8:12 pm    Post subject: Reply to: How to display data in command prompt
Reply with quote

You did not say from where you are executing your rexx program from. My experience is that you will need code within the calling panel.

1. in the exec, VPUT myvar SHARED
2. in the )INIT section of the panel:
Code:
  VGET myvar SHARED
  IF (&myvar &= &z)
      &ZCMD = &myvar
Back to top
View user's profile Send private message
shivadravid

New User


Joined: 16 Jan 2014
Posts: 2
Location: India

PostPosted: Mon Jan 20, 2014 8:42 pm    Post subject:
Reply with quote

Nic,
Sorry for the redundancy caused, i used ur menu suggestion and it worked as expected, but still i want to know whether we will be able to return a value to the command line from rexx

Thanks again for ur valuable suggestions!!!
Back to top
View user's profile Send private message
sureshpathi10

Active User


Joined: 03 May 2010
Posts: 154
Location: Kuala Lumpur

PostPosted: Tue Jan 21, 2014 7:39 am    Post subject:
Reply with quote

Yes Mr. Shiva,

ZCMD is available in your REXX program also, only if you use VGET & VPUT in your panel.
So, if you perform as Mr. Pedro suggested, you will get it done.
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 -> CLIST & REXX 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. Unwrap the data based on delimiter X'25' bhavana yalavarthi DFSORT/ICETOOL 30 Fri Dec 09, 2016 10:25 am
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts ODPP(Optim Data privacy Provider) Iss... Rama kishore IBM Tools 1 Mon Nov 07, 2016 5:46 pm


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