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

help on the usage of VGET


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

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Tue Mar 27, 2012 6:19 pm
Reply with quote

I copied and executed IBM provided sample REXX-DB2 program, but error occurred at below point,
Code:
SSID = "" /* Default */         
"VGET (DSNEOV01)"               
If RC = 0 Then SSID = DSNEOV01 


I tried to search for the usage of VGET, but no satisfactory result.

can you please help me on where I should look for the usage of VGET?

how can I assign the default DB2 subsystem ID to REXX program?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue Mar 27, 2012 6:33 pm
Reply with quote

this is the ispf services manual where you will find VGET

the dsid for the db2 subsystem,
either hard code or have it read an appropriate parm like you would for a systin for the DSN parm of an IKJEFT.. step.

you, of course, need to know the db2 dsids of your own system.
Back to top
View user's profile Send private message
dejunzhu

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Wed Mar 28, 2012 6:51 am
Reply with quote

THANKS, DICK!
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 767
Location: Whitby, ON, Canada

PostPosted: Wed Mar 28, 2012 5:50 pm
Reply with quote

FYI: DSNEOV01 is the variable used by DB2I to store the DB2 ssid. To access this value, your ISPF application has to run under the same APPLID as DB2I. Our shop uses NEWAPPL(DBMS), but that can vary.
Back to top
View user's profile Send private message
dejunzhu

Active User


Joined: 08 May 2008
Posts: 390
Location: China

PostPosted: Fri Apr 06, 2012 3:07 pm
Reply with quote

don.leahy wrote:
FYI: DSNEOV01 is the variable used by DB2I to store the DB2 ssid. To access this value, your ISPF application has to run under the same APPLID as DB2I. Our shop uses NEWAPPL(DBMS), but that can vary.

Thanks for your information.
but what if I want to retrieve SSID into general REXX program?
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


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

PostPosted: Fri Apr 06, 2012 3:22 pm
Reply with quote

dejunzhu wrote:
don.leahy wrote:
FYI: DSNEOV01 is the variable used by DB2I to store the DB2 ssid. To access this value, your ISPF application has to run under the same APPLID as DB2I. Our shop uses NEWAPPL(DBMS), but that can vary.

Thanks for your information.
but what if I want to retrieve SSID into general REXX program?

VGET draws from one of two profile pools -- the application pool or the shared pool. If the variable is in the pool of a different application, you can't get it.

You can write an external function that VGETs a variable and pushes it onto a stack, and start it as a different application using the NEWAPPL parameter of the SELECT service. Note that you will still need error checking to handle the situation where the variable doesn't exist.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts USAGE parameter of RACDCERT CONNECT c... All Other Mainframe Topics 2
No new posts STEM usage in REXX CLIST & REXX 14
No new posts z/OS Modules Usage report using SMF 42 DFSORT/ICETOOL 2
No new posts Concatenate 2 fields (usage national)... COBOL Programming 2
No new posts JCL and TAPE drives: how to maximize ... JCL & VSAM 9
Search our Forums:


Back to Top