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

REXX to read data from IMS DB


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sathyaraj

New User


Joined: 28 Sep 2007
Posts: 71
Location: India.

PostPosted: Wed Mar 23, 2011 10:02 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Mar 23, 2011 10:42 pm
Reply with quote

everything seems clear enough here
publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.ims11.doc.apr/ims_adapterforrexx.htm

proceeding to Sample execs using REXXTDLI
and to IVPREXX sample application

running the IVP usually clarifies lots of things
Back to top
View user's profile Send private message
sathyaraj

New User


Joined: 28 Sep 2007
Posts: 71
Location: India.

PostPosted: Wed Mar 23, 2011 11:58 pm
Reply with quote

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
View user's profile Send private message
don.leahy

Active Member


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

PostPosted: Thu Mar 24, 2011 3:46 am
Reply with quote

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
View user's profile Send private message
Peter Nancollis

New User


Joined: 15 Mar 2011
Posts: 47
Location: UK

PostPosted: Thu Mar 24, 2011 5:01 am
Reply with quote

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
View user's profile Send private message
sathyaraj

New User


Joined: 28 Sep 2007
Posts: 71
Location: India.

PostPosted: Thu Mar 24, 2011 5:10 pm
Reply with quote

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
View user's profile Send private message
don.leahy

Active Member


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

PostPosted: Thu Mar 24, 2011 5:26 pm
Reply with quote

Have you checked with your IMS sysprog to see if the IVPREXX transaction has been genned?
Back to top
View user's profile Send private message
sathyaraj

New User


Joined: 28 Sep 2007
Posts: 71
Location: India.

PostPosted: Fri Mar 25, 2011 5:01 pm
Reply with quote

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
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 2
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top