Page 1 of 1

Dynamic access to IMS databases

PostPosted: Mon Apr 01, 2013 9:02 pm
by Praveenkumar M
Hi, is it possible to access different IMS databases dynamically from a COBOL IMS Batch program? If possible, Please assist me how to do that.

Re: Dynamic access to IMS databases

PostPosted: Tue Apr 02, 2013 1:57 am
by c62ap90
What is your definition of "dynamically"? Can you be more specific in what you are trying to do?

Re: Dynamic access to IMS databases

PostPosted: Wed Apr 24, 2013 2:18 am
by pmartyn
IMS is not Java. Objects are not inherited. IMS requires a PSB to access Databases. The PSB statements define the databases to be accessed by the application program. The statement also defines the type of operations allowed by the application program. Each database requires a separate PCB statement. PSB generation allows for up to 255 database PCBs (less the number of alternate PCBs defined). That limitation alone suggests that even if you were to create a PSB to access everything, after 255 databases you will lose access.

So; to answer your question 'No'