View previous topic :: View next topic |
Author |
Message |
bade_miya Beginner
Joined: 10 Dec 2003 Posts: 110 Topics: 38
|
Posted: Sat Nov 20, 2004 10:47 am Post subject: Can i call an IMS database from my REXX EXEC? |
|
|
Hi all,
I know this question has been asked before because i got this link while searching.
http://www.mvsforums.com/helpboards/viewtopic.php?t=2691&highlight=ims
But i couldnt get what i am looking for from the answers given. Let me explain my requirement.
I have a rexx exec. Now i have to invoke that rexx exec from ISPF(like "tso imsrexx"). In this exec i have to access a IMS database. I went through the the manual provided by kolusu in the above said post. But the examples provided didnt seem to work. Is there any prior setup needed before running the exec.
I dont know whether i am understanding the manuals correctly, but i think it says how to invoke a rexx exec from an ims program or region? Please correct me if i am wrong. If any one have prior experience in writing such an exec, please provide me with a sample code.
thanks
bade_miya |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
bade_miya Beginner
Joined: 10 Dec 2003 Posts: 110 Topics: 38
|
Posted: Wed Nov 24, 2004 7:41 am Post subject: |
|
|
Hi Kolusu,
Thanks for the link. I tried this sample code earlier also before posting the query in the forum. Its giving me a return code of -3. I changed "IOPCB" to the input PCB name we use in our shop. Still its returning the same return code. Should we do any other setting before running this?
I am attaching the code i tried to run.
[code:1:b1c52960bd]
/*REXX*/
IO = "IOPCB" /* IMS Name for I/O PCB */
OutMsg="Hello World"
Address REXXTDLI "ISRT IO OutMsg"
If RC |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
|
|