Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Defining database/dictionary connection

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IDMS/ADSO
Author Message
Elroy

New User


Joined: 19 Apr 2006
Posts: 3

PostPosted: Mon Jun 26, 2006 2:48 pm    Post subject: Defining database/dictionary connection
Reply with quote

Hi,

I'm very new to IDMS and I'm trying to find out where the database connections can be specified for COBOL programs accessing the database.

From what I can work out from the documentation the possibilities are:
- SYSIDMS and SYSCTL statements in the JCL that runs the program
- A SYSIDMS load module
- An IDMSOPTI load module
- A BIND RUN-UNIT statement within the COBOL program
- Session defaults?

Is this correct/all possibilities?
What is the precedence, I.e. if I specify it in a BIND RUN-UNIT and in the JCL which one will be used?

What other things are necessary for a program to make a connection to an IDMS database?
If anyone has more information on these things it would be greatly appreciated.

Thanks.
Back to top
View user's profile Send private message
References
PostPosted: Mon Jun 26, 2006 2:48 pm    Post subject: Re: Defining database/dictionary connection Reply with quote

vijayakumar.yellala

New User


Joined: 19 Apr 2006
Posts: 47
Location: Chennai

PostPosted: Wed Aug 02, 2006 12:34 pm    Post subject: Re: Defining database/dictionary connection
Reply with quote

Hi,

whenever writing new program first we have to follow the rules, which mentioned below...

1. in environment division. Protocol has to be specified.

Protocol records are manual/automatic

2. in data division:

schema section has to defined.
in this we have to define which subschema and schema are using in the program

3. in the working storage section

we have to define what r the records r using in the program.....

copy idms subschema-control
copy idms record <record name>

in the procedure division.

have ready the areas which mode u want to use(update/retrive)

then use bind subschema-cntl

at end of the program,

you should have to specity the finish startment.

If i am worng please correct me....

Regards
Vijay
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IDMS/ADSO All times are GMT + 6 Hours
Page 1 of 1