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

WRITE to VSAM giving duplicate RC


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Feb 23, 2018 3:33 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Duplicate transid's declared using CEDA CICS 3
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
Search our Forums:

Back to Top