Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum 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

Senior Member


Joined: 14 Mar 2007
Posts: 10626
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 REXX VSAM Harold Barnes CLIST & REXX 2 Sat Oct 05, 2019 2:38 pm
No new posts CICS VSAM file max volumes socker_dad JCL & VSAM 4 Tue Aug 20, 2019 1:28 am
No new posts Compare duplicate records in same file pshongal DFSORT/ICETOOL 3 Fri Aug 09, 2019 9:37 am
No new posts Unable to delete dataset - VSAM datas... netcrawler JCL & VSAM 20 Fri Jul 26, 2019 2:06 pm
No new posts How to count duplicate key records co... sergeyken SYNCSORT 0 Thu Jul 25, 2019 8:03 pm

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