View previous topic :: View next topic
|
Author |
Message |
sathyaraj
New User
Joined: 28 Sep 2007 Posts: 71 Location: India.
|
|
|
|
Hi,
I went through the IBM documents for IMS and IMS adapter for REXX as well. It has a wealth of info but I am not sure where to find what I am looking for.
I need few clarifications before starting my work. Could someone help plz...?
I am excecuting the REXX program from TSO.
How do we define the PSB that should be used by the currect EXEC.
To simplify, my PSB will be a member in a PDS. I need to know how my exec can identify this PDS and the member. (Should I Allocate the PDS to some library like Sysproc, Sysexec? )
Many thanks for your help. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
sathyaraj
New User
Joined: 28 Sep 2007 Posts: 71 Location: India.
|
|
|
|
Thanks Enrico,
I looked into the examples and I am stuck with the PSB definition.
For example in the manual, in the Partname exec example, we can see the comment
/* Designed to be run by the IVPREXX exec with PSB=DFSSAM02 */
But how does the exec know this is the PSB that it should refer?
Also when I give IVPREXX in the IMS region, I get the msg, 'Destination not found' . Should I change some allocation for IVP to work?
Your Inputs would be really helpful.
Thanks,
Sathya |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
In order to run IVPREXX in an IMS region, the region has to have a SYSEXEC dd statement added to it. You may have to negotiate with your DBA and/or IMS sysprog to do that. (Beer sometimes works).
No matter how you execute your IMS Rexx program, it has to run in an IMS region (MPP, BMP, DLI or DBB). It is not like DSNREXX (Rexx DB2 interface) where you can connect and disconnect from DB2 at will.
I can provide more details if you are still interested. IMS Rexx is a very useful, if little known, feature of IMS. There is a bit of a learning curve regarding the environment set up, but the actual programming is pretty simple. |
|
Back to top |
|
|
Peter Nancollis
New User
Joined: 15 Mar 2011 Posts: 47 Location: UK
|
|
|
|
I tend to hijack an existing PSB that has the PCB(s) I want
BMP is the easiest dependent region to play with
rather than ask what to do - why not say what you have done and whats gone wrong for people to give pointers as to how to move forward ? |
|
Back to top |
|
|
sathyaraj
New User
Joined: 28 Sep 2007 Posts: 71 Location: India.
|
|
|
|
Hi,
I used the below job to Copy IVPREXX using IVP.
Code: |
//LINK EXEC PGM=IEWL,
// PARM='XREF,LIST,LET,SIZE=(192K,64K)'
//SYSPRINT DD SYSOUT=*
//SDFSRESL DD DISP=SHR,DSN=IMS.SDFSRESL
//SYSLMOD DD DISP=SHR,DSN=IMS1.PGMLIB
//SYSUT1 DD UNIT=(SYSALLDA,SEP=(SYSLMOD,SYSLIN)),
// DISP=(,DELETE,DELETE),SPACE=(CYL,(1,1))
//SYSLIN DD *
INCLUDE SDFSRESL(DFSREXX0)
ENTRY DFSREXX0
NAME IVPREXX(R)
/*
|
But am still not able to use IVPREXX from the IMS region. I get 'DESTINATION NOT FOUND'. Am I missing something here? |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
Have you checked with your IMS sysprog to see if the IVPREXX transaction has been genned? |
|
Back to top |
|
|
sathyaraj
New User
Joined: 28 Sep 2007 Posts: 71 Location: India.
|
|
|
|
Thanks Don,
I managed to have the transaction IVPREXX running.
One more query I have here is that, Is the REXX we are using here different from the one that comes with Z/OS?
Would we still be able to invoke panels?
I need to create some screens, which will get some inputs from user and updated in IMS database.. is it possible after all?
Thanks Much for your help. |
|
Back to top |
|
|
|