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

The segment is not getting updated in IMS


IBM Mainframe Forums -> IMS DB/DC
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
ranesach

New User


Joined: 23 Jul 2009
Posts: 3
Location: India

PostPosted: Mon Sep 14, 2009 12:06 pm
Reply with quote

We are facing some issues with a COBOL0-IMS Program and will really appreciate any pointers that can help us proceed further.



We are writing a Mainframe COBOL-IMS program that

- Reads records from Flat file having Vehicles data

- Searches a vehicle in a Vehicle master IMS segment

- Updates the Vehicle record in the IMS Segment



The problem we are facing is – “Program is getting executed successfully but the Vehicle IMS segment is not getting updated”



For IMS database access, we are using one of the existing PSBs having a PCB included for Vehicle Master Segment. We are not sure whether that can cause a problem and where we are supposed to create our own PSB every time when we have to do any UPDATES to an IMS segment.



Following is the Code Snippet:



SPFINVIN – Is the Vehicle Master IMS Segment Name

VFINA030-PCB - Is the existing PCB already created for some other existing production programs that also have SPFINVIN



*** Code that is calling the VIN master for Searching the VIN - GHU

CALL 'CBLTDLI' USING GHU

VFINA030-PCB

SPFINVIN

SSA-SPFINVIN



IF VFINA030-STATUS-CODE = SPACE

NEXT SENTENCE

ELSE

……

*** Code that is calling the VIN master for replacing the VIN – REPL

CALL 'CBLTDLI' USING REPL

VFINA030-PCB

SPFINVIN



*** Checkpoint code which is updating the VIN record. The REPL call is returning status code SPACE but the database is not reflecting the changes.

We could verify the segment name, processing option in REPL call using DISPLAY statements. The PROC OPTION for the call is A.



IF VFINA030-STATUS-CODE = SPACE

PERFORM Z9995-CKPT-INCREMENT THRU Z9995-EXIT

ADD 1 TO RECS-READ

VADOR-RECS-UPDATED

DISPLAY ' REPL STATUS ' VFINA030-STATUS-CODE

DISPLAY ' PROC OPTION' VFINA030-PROC-OPTS

DISPLAY ' SEG NAME' VFINA030-SEG-NAME-FB

ELSE

……….
Back to top
View user's profile Send private message
bipinpeter

Active User


Joined: 18 Jun 2007
Posts: 213
Location: Cochin/Kerala/India

PostPosted: Mon Sep 14, 2009 12:19 pm
Reply with quote

Hi,
Where you given the code to execute REPL command?

Regards,
Bipin Peter
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Mon Sep 14, 2009 5:05 pm
Reply with quote

Is this the same problem as this post?

ibmmainframes.com/viewtopic.php?t=43793
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Sep 14, 2009 8:20 pm
Reply with quote

Hi Sandy,

Yup, this looks like a duplicate and is being locked to reduce clutter.

Thanks for the heads-up,

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts IMS SEGMENT READ ISSUE IMS DB/DC 1
No new posts Inserting records into the empty segm... IMS DB/DC 1
No new posts REORG to reduce segment size new DBD IMS DB/DC 2
No new posts Cursor result set being updated??? DB2 5
No new posts How to find if segment is read in any... IMS DB/DC 12
Search our Forums:

Back to Top