IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

REG: IDMS - COBOL(Am close to my deadline)


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shankarm

Active User


Joined: 17 May 2010
Posts: 175
Location: India

PostPosted: Mon May 17, 2010 4:06 pm
Reply with quote

Hi there,

I need a sample cobol program which connects to IDMS and retrieves data. I am not comfortable with IDMS. As far as i know, we can use ' Obtain ' command to get data but other than Obtain, what else should be added to the program??

should we use something like DCLGEN as we do in DB2?

My requirement is,
I have a schema say 'sche1', sub-schema say 'subsche1'. I need a record from the sub-schema, I have the 'key' with me.

A simple, sample code will helpful,

Please reply as soon as possible, Am nearing my deadline.

Regards,
Shankar M
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon May 17, 2010 4:09 pm
Reply with quote

Quote:
Please reply as soon as possible, Am nearing my deadline.

we ourselves have our own deadlines, so we cannot satisfy Your as soon as possible
Back to top
View user's profile Send private message
shankarm

Active User


Joined: 17 May 2010
Posts: 175
Location: India

PostPosted: Mon May 17, 2010 4:15 pm
Reply with quote

icon_smile.gif no issues man, take your time.
Back to top
View user's profile Send private message
Pravesh

New User


Joined: 30 Jul 2009
Posts: 32
Location: Gurgaon

PostPosted: Mon May 17, 2010 4:31 pm
Reply with quote

Here in IDMS we have all the variabled defined in Schema/Subschema like we have DCLGEN in DB2
That is the reason we invoke Schema/Subschema in data division in SUBSCHEMA SECTION.
Then in procedure division
1) Make connection to DMS by using IMPART command
2) Open area(s) where your records are stored.
3) Fetch the record9s) based on your requirement.
4) DEPORT for releasing the connection with DMS.

FYI;- If you think by writing ASAP you will get fast reponse. It is not the case here and valid too.

Regards,
Pravesh
Back to top
View user's profile Send private message
shankarm

Active User


Joined: 17 May 2010
Posts: 175
Location: India

PostPosted: Mon May 17, 2010 4:36 pm
Reply with quote

Thanks for the info,
Back to top
View user's profile Send private message
shankarm

Active User


Joined: 17 May 2010
Posts: 175
Location: India

PostPosted: Mon May 17, 2010 4:46 pm
Reply with quote

People, If using words like 'Deadline'/'ASAP' is an offence, then I apologise for those words.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon May 17, 2010 4:59 pm
Reply with quote

it is not an offence ! is just against proper netiquette
Back to top
View user's profile Send private message
Pravesh

New User


Joined: 30 Jul 2009
Posts: 32
Location: Gurgaon

PostPosted: Mon May 17, 2010 5:07 pm
Reply with quote

cool man..... have a great learning with best attitude..... icon_smile.gif
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon May 17, 2010 6:24 pm
Reply with quote

Pravesh wrote:
cool man.....

They are actually.. Since still you are with 0 warnings.. icon_wink.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top