|
View previous topic :: View next topic
|
| Author |
Message |
dejunzhu
Active User

Joined: 08 May 2008 Posts: 390 Location: China
|
|
|
|
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 |
|
 |
dbzTHEdinosauer
Global Moderator

Joined: 20 Oct 2006 Posts: 6965 Location: porcelain throne
|
|
|
|
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 |
|
 |
dejunzhu
Active User

Joined: 08 May 2008 Posts: 390 Location: China
|
|
|
|
| THANKS, DICK! |
|
| Back to top |
|
 |
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 767 Location: Whitby, ON, Canada
|
|
|
|
| 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 |
|
 |
dejunzhu
Active User

Joined: 08 May 2008 Posts: 390 Location: China
|
|
|
|
| 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 |
|
 |
Akatsukami
Global Moderator

Joined: 03 Oct 2009 Posts: 1787 Location: Bloomington, IL
|
|
|
|
| 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 |
|
 |
|
|