Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 2502
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: 6966
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: 2429
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: 2429
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: 6966
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: 2429
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 Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm
No new posts Write R1 and R2 to OP1 and R1 to OP2 bhaskar_kanteti DFSORT/ICETOOL 10 Fri Mar 03, 2017 11:18 am
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us