Not able to update vsam file



Unicenter CA-Easytrieve Plus Report Generator: CA's information retrieval and data management tool

Not able to update vsam file

Postby arya_starc » Fri Jul 01, 2016 9:31 am

Not able to vsam file by rewrite the new values in key part.
Is this because i am trying to update the key field in the file.
Below is the code:-

FILE GMSM VS(UPDATE)                                            
GMSM-ORG                      1 03  N                            
GMSM-SCHEME-ID               22 05  A                            
*                                                                
JOB INPUT NULL                                                  
*-----------------                                              
GET GMSM                                                        
IF GMSM-ORG = 000 999                                            
   GOTO JOB                                                      
END-IF                                                          
 MOVE 'T1CCC' TO GMSM-SCHEME-ID                                  
 WRITE GMSM UPDATE                                              
 STOP.                                                          
 *          

 


Here the file is already catalouged and the field i try to update is the key part of the file.
arya_starc
 
Posts: 136
Joined: Mon Sep 21, 2015 1:39 pm
Has thanked: 5 times
Been thanked: 0 time

Re: Not able to update vsam file

Postby NicC » Fri Jul 01, 2016 1:25 pm

Is this because i am trying to ...

Who knows? You have not provided any error messages.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Not able to update vsam file

Postby enrico-sorichetti » Fri Jul 01, 2016 2:26 pm

changing - as You say - the key part of a record means that You are inserting a NEW record, NOT updating an existing one.

review Your understanding of vsam ways meditating on
http://www.redbooks.ibm.com/abstracts/s ... .html?Open
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3003
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: Not able to update vsam file

Postby arya_starc » Sun Jul 03, 2016 1:38 pm

enrico-sorichetti wrote:changing - as You say - the key part of a record means that You are inserting a NEW record, NOT updating an existing one.

review Your understanding of vsam ways meditating on
http://www.redbooks.ibm.com/abstracts/s ... .html?Open

this is the error message that I am getting
EZABX000 An error has occurred in program ????????.                            
EZABX001 The following messages provide diagnostic information.  Please        
         contact the person or persons responsible for maintaining this        
         application.  They may want to see this information or they may        
         want it printed.                                                      
         ###################### Diagnostic Information ######################  
EZABX003 The error occurred at 21.37 on 06/30/16.                              
EZIOE004 Logical I/O error on file GMSM.                                        
         Error indicator returned by access method.                            
EZIOE006 VSAM return code is 8 with error code of 96.                          
EZABX008 The error occurred at program statement number 14.
arya_starc
 
Posts: 136
Joined: Mon Sep 21, 2015 1:39 pm
Has thanked: 5 times
Been thanked: 0 time

Re: Not able to update vsam file

Postby NicC » Sun Jul 03, 2016 3:31 pm

With Enrico's comments and advice you should be abke to understand what has happened and you can then formulate a correction to your code. The error messages (the last 2 lines that you posted), when YOU look them up in the appropriate manual(s) should confirm Enrico's comments.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to CA-Easytrieve

 


  • Related topics
    Replies
    Views
    Last post