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 pass a value from REXX code to REXX panel

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: How to pass a value from REXX code to REXX panel
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

Senior Member


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

PostPosted: Thu Aug 16, 2012 2:36 pm    Post subject:
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

Senior Member


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

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

You might like to review these earlier threads:

http://ibmmainframes.com/about46356.html
http://ibmmainframes.com/about40639.html
http://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    Post subject: How to pass a value from REXX code to ISPF panel
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: 1727
Location: UK

PostPosted: Thu Aug 16, 2012 2:57 pm    Post subject:
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: 1747
Location: Bloomington, IL

PostPosted: Thu Aug 16, 2012 3:17 pm    Post subject:
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    Post subject:
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: 1747
Location: Bloomington, IL

PostPosted: Thu Aug 16, 2012 4:05 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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: 1727
Location: UK

PostPosted: Thu Aug 16, 2012 5:18 pm    Post subject:
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: 1224
Location: Israel

PostPosted: Thu Aug 16, 2012 5:38 pm    Post subject: Reply to: How to pass a value from REXX code to REXX panel
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    Post subject:
Reply with quote

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

Senior Member


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

PostPosted: Thu Aug 16, 2012 7:07 pm    Post subject:
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    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
No new posts the use of 'B3'x character in a panel Pedro TSO/ISPF 1 Thu Feb 16, 2017 3:09 am
No new posts REXX compiled via RXTCOMP sergeyken CLIST & REXX 7 Tue Feb 07, 2017 9:41 pm
No new posts Design of ISPF panel prino TSO/ISPF 2 Wed Jan 25, 2017 10:31 pm
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 pm


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