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
 
WRITE to VSAM giving duplicate RC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
picus_mf
Warnings : 1

New User


Joined: 09 Jun 2006
Posts: 52

PostPosted: Fri Feb 23, 2018 2:52 pm    Post subject: WRITE to VSAM giving duplicate RC
Reply with quote

Hi,
I have VSAM file with key 15 bytes (Date, Time). Date being the current date and time being the current time (ASKTIME, EIBTIME). When I perform WRITE operation on the VSAM (KSDS) file I am getting EIBRESP 22, EIBRESP2 14. I am not sure what is incorrect.

The record is written in the file but with not successful RC.

Code:

EXEC CICS  ASKTIME   
END-EXEC             

MOVE EIBTIME                 TO ABS-EIB-TIME   
MOVE ABS-EIB-TIME         TO ABS-FIL-TIME   
INITIALIZE                      ERR-KEY       
MOVE DATE-CURR-YYYYMMDD   TO FIL-ERR-DATE     
MOVE ABS-EIB-TIME         TO FIL-ERR-TIME     

   EXEC CICS WRITE                         
             DATASET ('FILE')           
             FROM    (FILERROR)           
             RIDFLD  (ERR-KEY)         
             LENGTH  (ERR-REC-LTH)   
             RESP    (IO-RESP)           
             RESP2   (IO-RESP2)         
             END-EXEC.


File output:
----+----1----+
****************
201802220171552
201802220222017
201802220222023
201802230010149
201802230010304
201802230010818
201805337282550
Back to top
View user's profile Send private message

enrico-sorichetti

Moderator


Joined: 14 Mar 2007
Posts: 10472
Location: italy

PostPosted: Fri Feb 23, 2018 3:33 pm    Post subject: Reply to: WRITE to VSAM giving duplicate RC
Reply with quote

You are confusing EIBRESP and EIBRESP2
the duplicate record is EIBRESP 14

EIBRESP 22 is a different situation
guess what ...
You had another topic dealing exactly with the same problem
http://ibmmainframes.com/viewtopic.php?t=61971&highlight=

You do not look like somebody who learns from past experience icon_cool.gif
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Not able to export the VSAM cluster sandeep kumar302 JCL & VSAM 5 Fri May 04, 2018 12:42 pm
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts VSAM - Accessing beyond record size Benchwarmer JCL & VSAM 6 Wed Apr 11, 2018 9:20 pm
No new posts Duplicate PARM on OUTFIL sancraig16 SYNCSORT 11 Thu Apr 05, 2018 10:25 pm

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