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

Help on easytrieve Write to VSAM


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Gousiya Mulla

New User


Joined: 02 Jun 2008
Posts: 87
Location: Bangalore

PostPosted: Sat Oct 30, 2010 5:19 pm
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Sat Oct 30, 2010 5:58 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sat Oct 30, 2010 6:56 pm
Reply with quote

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
View user's profile Send private message
Gousiya Mulla

New User


Joined: 02 Jun 2008
Posts: 87
Location: Bangalore

PostPosted: Sat Oct 30, 2010 7:37 pm
Reply with quote

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
View user's profile Send private message
quanzhong

New User


Joined: 12 Aug 2008
Posts: 46
Location: china

PostPosted: Sun Oct 31, 2010 12:04 pm
Reply with quote

can you define that variable in binary format, make it consistent with cobol, and try again.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Sun Oct 31, 2010 1:35 pm
Reply with quote

The vsam error means the following :

A PUT for update or an ERASE was issued without a previous GET for update.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Sun Oct 31, 2010 1:51 pm
Reply with quote

dbzTHEdinosauer

sorry, saw too late you said already something about the read/write
thing.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sun Oct 31, 2010 8:10 pm
Reply with quote

Peter,
no apologies required. your answer was succinct, without all the extra baggage that mine tend to carry.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Sun Oct 31, 2010 10:09 pm
Reply with quote

Dick,

thanks for going so easy on me.
Back to top
View user's profile Send private message
Gousiya Mulla

New User


Joined: 02 Jun 2008
Posts: 87
Location: Bangalore

PostPosted: Tue Nov 02, 2010 12:36 pm
Reply with quote

Hi, The error was because GET was not properly placed.

It got resolved , Thanks all for your help and advice !
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
This topic is locked: you cannot edit posts or make replies. How To Write, Compile and Execute Cob... COBOL Programming 5
Search our Forums:

Back to Top