Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

REXX to read data from IMS DB

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
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    Post subject: REXX to read data from IMS DB
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Wed Mar 23, 2011 10:42 pm    Post subject: Reply to: REXX to read data from IMS DB
Reply with quote

everything seems clear enough here
http://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    Post subject:
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: 650
Location: Whitby, ON, Canada

PostPosted: Thu Mar 24, 2011 3:46 am    Post subject:
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    Post subject:
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    Post subject:
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: 650
Location: Whitby, ON, Canada

PostPosted: Thu Mar 24, 2011 5:26 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us