IBM MAINFRAME HELP & SUPPORT FORUMS
Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
 

Defining database/dictionary connection

THIS IS AN ARCHIVE FORUM: CLICK HERE TO GO TO THE ORIGINAL TOPIC

 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> IDMS/ADSO
View previous topic :: View next topic  
Author Message
Elroy



Joined: 19 Apr 2006
Posts: 3

Posted: Mon Jun 26, 2006 2:48 pm    Post subject: Defining database/dictionary connection  

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



Joined: 19 Apr 2006
Posts: 47
Location: Chennai

Posted: Wed Aug 02, 2006 12:34 pm    Post subject: Re: Defining database/dictionary connection  

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  
 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> IDMS/ADSO
Page 1 of 1
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM