I am trying to write some data to a VSAM File using CICS. The RIDFLD field that I gave in the program is of length 18. I have created a file whose key field is of length. But still I am getting a Response Code of 21. Can you please help me out.
Joined: 06 Jun 2008 Posts: 8231 Location: Dubuque, Iowa, USA
Have you looked in the manual at what the 21 means? Have you cross referenced the WRITE command in the manual to find out what causes that code to come about (or what else to look at to find the problem)? In other words, what have you done to figure out this problem so far?
And you're probably going to need to provide more details before your problem can be resolved -- like what the write command looks like, how the file is defined to the CICS program, maybe even what the LISTCAT for the file looks like.