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

How to pass a value from REXX code to REXX panel


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

New User


Joined: 11 Dec 2010
Posts: 20
Location: India

PostPosted: Thu Aug 16, 2012 2:22 pm
Reply with quote

I want to pass the value from my REXX code to panel

For Example :

I'm using a Rexx code

"vput (I,O,L,S) profile"
"display panel(spnld) cursor("cur")"

if execute this code, I'm able to see the panel 'spnld'. From the coe if i want to pass the userid as below

user_id = userid()

in panel how to receive the value of user_id.

Please advise
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Aug 16, 2012 2:36 pm
Reply with quote

1. First, what your topic has got to do with "Job Vacancies" part of the Forum? I've moved it to "CLIST & REXX", possibly "TSO/ISPF" can be a choice but not "Job Vacancies".

2. From your subject-line, there is nothing called as "REXX Panel", ISPF panels, you can call them.

3. What is "coe" in this:
Quote:
From the coe if i want to pass the userid as below
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Aug 16, 2012 2:43 pm
Reply with quote

You might like to review these earlier threads:

ibmmainframes.com/about46356.html
ibmmainframes.com/about40639.html
ibmmainframes.com/about47125.html
Back to top
View user's profile Send private message
Sridhar R

New User


Joined: 11 Dec 2010
Posts: 20
Location: India

PostPosted: Thu Aug 16, 2012 2:52 pm
Reply with quote

I am sorrry for that...below i have corrected them. I have checked in the mentioned forum but i didnt get the correct solution. Could you plz explain it.

"vput (I,O,L,S) profile"
"display panel(spnld) cursor("cur")"

if execute this code, I'm able to see the panel 'spnld'. From the rexx code if i want to pass the userid as below

user_id = userid()

in panel how to receive the value of user_id.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Aug 16, 2012 2:57 pm
Reply with quote

code user_id as one of the panel fields. Suggest you start reading the Rexx and ISPF dialogue manager/services etc manuals. (links at the top or google)
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Aug 16, 2012 3:17 pm
Reply with quote

Is not underscore an invalid character in an ISPF variable name?
Back to top
View user's profile Send private message
Sridhar R

New User


Joined: 11 Dec 2010
Posts: 20
Location: India

PostPosted: Thu Aug 16, 2012 3:34 pm
Reply with quote

I gave an example.... plz let me know how to pass the values. i have tried to code the userid as one of the panel field but no luck.

could you please give an example
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Aug 16, 2012 4:05 pm
Reply with quote

Well, if you persist in lying about what you're doing, we cannot help you and will not try.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 16, 2012 4:16 pm
Reply with quote

Sridhar R,
yaarfiahnbpitf.

boy this chaaaatroom stuff is great!
Back to top
View user's profile Send private message
Sridhar R

New User


Joined: 11 Dec 2010
Posts: 20
Location: India

PostPosted: Thu Aug 16, 2012 4:25 pm
Reply with quote

Okay...I have piece of REXX code as below

opt4:
jobname = userid()||'D'
"vput (I,O,L,S) profile"
"display panel(spnld) cursor("cur")"


Now I have a panel which having a field as Jobname. So now the value of the jobname from the code, it should be place in the field Jobname

For example :

If my userid is XYZ123 means, as per the code userid will append with the letter D. So from the rexx code I want to pass the value XYZ123D to panel.

So in the panel it should display automatically as below:

Jobname : ___XYZ123D___

Hope now you can understand my requirement completely


[/img]
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 16, 2012 4:32 pm
Reply with quote

Sridhar R wrote:
Hope now you can understand my requirement completely


hey, we have known what your requirement is,
and have since the beginning of this much too long thread.
and
you have been given the answer,
as well as links to the answer,
as well as links to the manuals, which have examples.

ngfy
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Aug 16, 2012 5:18 pm
Reply with quote

What variable name are you using in the panel? Cut and paste the line into your reply and use th code tags to preserve spaces. Also, I do not know why you show your VPUT as it has absolutely nothing to do with this.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Thu Aug 16, 2012 5:38 pm
Reply with quote

You have to use the correct attribute [TYPE(INPUT) or TYPE(OUTPUT)] before the 'jobname' word in the panel.

You need to have these books open at all time (and to read them, of course):
Back to top
View user's profile Send private message
Sridhar R

New User


Joined: 11 Dec 2010
Posts: 20
Location: India

PostPosted: Thu Aug 16, 2012 6:39 pm
Reply with quote

Thankyou very much i got the expected results.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Aug 16, 2012 7:07 pm
Reply with quote

It's d be nice if you can share the solution you've used; might help someone later looking for a similar problem.
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 Access library name in REXX CLIST & REXX 6
No new posts access library name in REXX CLIST & REXX 2
No new posts Receiving RC 5 when executing REXX pr... CLIST & REXX 3
No new posts Help needed to assemble IMS sample co... ABENDS & Debugging 4
No new posts Calling IEHPROGM from REXX CLIST & REXX 7
Search our Forums:

Back to Top