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

Pass variable values using select command in rexx


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
samedesh
Currently Banned

New User


Joined: 22 May 2007
Posts: 46
Location: India

PostPosted: Mon May 17, 2010 7:48 pm
Reply with quote

Hi,

I need to pass the value in panel's variable using SELECT command in Rexx. The panel to which I am passing the value is one of the Endevor's panel. I checked in manual but was unable to find the command, can we pass the value in the same way... or is their any other way?? Please help..
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon May 17, 2010 7:53 pm
Reply with quote

How do you usually populate variables in a panel ?
Back to top
View user's profile Send private message
samedesh
Currently Banned

New User


Joined: 22 May 2007
Posts: 46
Location: India

PostPosted: Mon May 17, 2010 7:56 pm
Reply with quote

I move my data into the panel variables by assignment operator('=')ofcourse before 'SELECT' statement.
But I have also tried this way.. but it is not working icon_sad.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon May 17, 2010 8:01 pm
Reply with quote

Have you used a TRACE in your REXX
What are you using the SELECT command for

Please learn to give as much detail as possible as not everyone likes playing 20 questions
Back to top
View user's profile Send private message
samedesh
Currently Banned

New User


Joined: 22 May 2007
Posts: 46
Location: India

PostPosted: Mon May 17, 2010 8:09 pm
Reply with quote

Hi expat,

I tried using "trace ?R" command, variables are populated by data in rexx program(by using '=') and then I am using select command due which it displays the panel (but without any data on screen).

I tried to pass data with normal panel(which I have created) with its variable but it is working fine.

But when I tried to pass values to endevor panel then it does not get populate.

My select command is
ADDRESS 'ISPEXEC'
"SELECT PGM(ISPSTRT) PARM(W;P;2;U;O) SCRNAME(harleen)"

Have I done mesh icon_rolleyes.gif
Back to top
View user's profile Send private message
Josh Keller

New User


Joined: 08 Oct 2007
Posts: 36
Location: Columbia, SC

PostPosted: Fri May 21, 2010 6:08 pm
Reply with quote

Quote:
I tried to pass data with normal panel(which I have created) with its variable but it is working fine.


Double check that Endevor panel and see if its doing a VGET for those vars and overlaying yours. If that's the case, you can overlay the profile vars yourself and then let Endevor pull them in. Keep in mind you'll have to been in the right APPL ID

Also just curious, what's the name of the Endevor panel you're trying to display?
Back to top
View user's profile Send private message
samedesh
Currently Banned

New User


Joined: 22 May 2007
Posts: 46
Location: India

PostPosted: Fri May 21, 2010 6:48 pm
Reply with quote

Hi Josh,

Thanks for the reply. I checked for application id and it was different from my default application id. Unfortunately.. I don't have access to endevor's application id. So overriding options seems to be not possible.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Fri May 21, 2010 7:23 pm
Reply with quote

1. Call your own rexx program using the Endevour applid.
2. Pass to your program, the information that needs to be saved.
3. VPUT to profile
4. exit

5. Then call the normal Endevour program.
Back to top
View user's profile Send private message
samedesh
Currently Banned

New User


Joined: 22 May 2007
Posts: 46
Location: India

PostPosted: Mon May 24, 2010 2:26 pm
Reply with quote

Hi Pedro,

I tried what you have specified. But again its giving problem while VPUT command(RC=-3) which might be because variables not found in profile. As this is access issue with endevor application id. Is their any way to check the access/ contents of endevor application id. I tried 3.9 option in ISPF.
Code:
9  Commands    Create/change an application command table
Back to top
View user's profile Send private message
samedesh
Currently Banned

New User


Joined: 22 May 2007
Posts: 46
Location: India

PostPosted: Mon May 24, 2010 5:11 pm
Reply with quote

Hi Pedro,

First of all thanks a lot for you suggestion which worked sucessfully icon_lol.gif
Initially I was not initializing some libraries which I got after a lot of investigation in system.

But atlast it worked.

Thanks once again icon_lol.gif
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 Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
Search our Forums:

Back to Top