View previous topic :: View next topic
|
Author |
Message |
Gousiya Mulla
New User
Joined: 02 Jun 2008 Posts: 87 Location: Bangalore
|
|
|
|
Hi,
I am trying update the VSAM file thru Easytrieve giving
WRITE OUT UPDATE , where OUT is the VSAM file.
getting the error "VSAM - LOGICAL ERROR - FILE OUT - CODE 092(5C)"
I tried to recreate teh VSAM file but still same error.
Please advice ! |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Refer to the Easytrieve documentation. I'd be very surprised if there wasn't an explanation.
You should be looking there first.
Bill |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
you obviously have a logic error (92)
suggest reading some manuals to determine what can cause a logic error with a keyed-index file.
don't know about ezytrieve, but in COBOL you have to read the record with update before you can rewrite (write/update) the record.
did you open the file?
are you positioned on the correct record? |
|
Back to top |
|
|
Gousiya Mulla
New User
Joined: 02 Jun 2008 Posts: 87 Location: Bangalore
|
|
|
|
Hi Bill and Dick ,
Thanks for your reply.
Bill,
I am passing a numeric value (39) which is been defined in Eztrv variable with rec-format 'P' and the same field is binary in the VSAM file.
Please advice how can I proceed now.
have tried to use the temperory variables to convert and pass the values but dint work. Pls advice . |
|
Back to top |
|
|
quanzhong
New User
Joined: 12 Aug 2008 Posts: 46 Location: china
|
|
|
|
can you define that variable in binary format, make it consistent with cobol, and try again. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
The vsam error means the following :
A PUT for update or an ERASE was issued without a previous GET for update. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
dbzTHEdinosauer
sorry, saw too late you said already something about the read/write
thing. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Peter,
no apologies required. your answer was succinct, without all the extra baggage that mine tend to carry. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Dick,
thanks for going so easy on me. |
|
Back to top |
|
|
Gousiya Mulla
New User
Joined: 02 Jun 2008 Posts: 87 Location: Bangalore
|
|
|
|
Hi, The error was because GET was not properly placed.
It got resolved , Thanks all for your help and advice ! |
|
Back to top |
|
|
|