View previous topic :: View next topic
|
Author |
Message |
Sridhar R
New User
Joined: 11 Dec 2010 Posts: 20 Location: India
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
Back to top |
|
|
Sridhar R
New User
Joined: 11 Dec 2010 Posts: 20 Location: India
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
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 |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1787 Location: Bloomington, IL
|
|
|
|
Is not underscore an invalid character in an ISPF variable name? |
|
Back to top |
|
|
Sridhar R
New User
Joined: 11 Dec 2010 Posts: 20 Location: India
|
|
|
|
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 |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1787 Location: Bloomington, IL
|
|
|
|
Well, if you persist in lying about what you're doing, we cannot help you and will not try. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Sridhar R,
yaarfiahnbpitf.
boy this chaaaatroom stuff is great! |
|
Back to top |
|
|
Sridhar R
New User
Joined: 11 Dec 2010 Posts: 20 Location: India
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
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 |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
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 |
|
|
Sridhar R
New User
Joined: 11 Dec 2010 Posts: 20 Location: India
|
|
|
|
Thankyou very much i got the expected results. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
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 |
|
|
|