Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Help on easytrieve Write to VSAM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: Help on easytrieve Write to VSAM
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: 2504
Location: Atlanta, Georgia, USA

PostPosted: Sat Oct 30, 2010 5:58 pm    Post subject: Reply to: Help on easytrieve Write to VSAM
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: 6968
Location: porcelain throne

PostPosted: Sat Oct 30, 2010 6:56 pm    Post subject:
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    Post subject:
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    Post subject:
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: 2442
Location: Netherlands, Amstelveen

PostPosted: Sun Oct 31, 2010 1:35 pm    Post subject:
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: 2442
Location: Netherlands, Amstelveen

PostPosted: Sun Oct 31, 2010 1:51 pm    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Sun Oct 31, 2010 8:10 pm    Post subject:
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: 2442
Location: Netherlands, Amstelveen

PostPosted: Sun Oct 31, 2010 10:09 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us