View previous topic :: View next topic
|
Author |
Message |
Elroy
New User
Joined: 19 Apr 2006 Posts: 3
|
|
|
|
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 |
|
|
vijayakumar.yellala
New User
Joined: 19 Apr 2006 Posts: 63 Location: Chennai
|
|
|
|
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 |
|
|
|