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: 1730
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: 1730
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: 1730
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: 2029
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
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
No new posts Sorting group data rajella DFSORT/ICETOOL 4 Sun Jan 22, 2017 11:32 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm


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