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

How is cobol COMP-3 stored in IMS


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pdotp2007

New User


Joined: 17 Feb 2007
Posts: 1
Location: India

PostPosted: Sat Feb 17, 2007 3:23 pm
Reply with quote

From cobol program I am trying to access a segement, in the key i have a 9(11) COMP3 field. I am passing zeroes to this field and I have edited IMS database to have zeroes in the database, but the call us giving me GE that is segment not found. Any reason why?
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Mon Feb 19, 2007 7:38 pm
Reply with quote

Depends on the TYPE-parameter in your DBD. Check this and compare your programdefinition with the DBD-definition for this field. Also take a look at my signature; the first link in it and do some searching now and then.
Back to top
View user's profile Send private message
gautam79

New User


Joined: 30 Aug 2006
Posts: 11
Location: India

PostPosted: Fri Mar 09, 2007 7:16 pm
Reply with quote

Hi,
I think if the same key is defined on database as Packed (shows up as PS on File Aid for IMS) 11,0, it should just work fine. check this.

And i am not sure how u edited this on IMS DB, because if its a key field, it should not allow you to modify that on database. You should probably be inserting a new segment with key field as ZEROS.
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 -> IMS DB/DC

 


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