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

Writing in ESDS in CICS: EIBRESP 16


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ssowmya

New User


Joined: 10 Oct 2006
Posts: 40

PostPosted: Fri Mar 23, 2007 4:28 pm
Reply with quote

Hi

We have defined a new ESDS file in CICS. I am trying to write into the new file and I keep getting EIBRESP 16. The code used is

EXEC CICS WRITE DATASET ('NEWFILE')
FROM(NEWFILE-RECORD)
RIDFLD(DUMMY-KEY)
RBA
END-EXEC.

Dummy key is defined as

77 DUMMY-KEY PIC S9(8) COMP VALUE ZEROS.

Since the Key position and Key length of the ESDS file defined in CICS is 0. Could anyone please let me know whatz wrong in the above code....
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Mar 23, 2007 4:47 pm
Reply with quote

INVREQ, what is in EIBRESP2?
Back to top
View user's profile Send private message
ssowmya

New User


Joined: 10 Oct 2006
Posts: 40

PostPosted: Fri Mar 23, 2007 4:52 pm
Reply with quote

EIBRESP2 I receive is 20.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Mar 23, 2007 4:56 pm
Reply with quote

INVREQ
RESP2 values: 20
Add operations are not allowed according to the file entry specification in the FCT.
The file is not defined in the FCT to allow adding new records.....
Manuals are so much fun......
Back to top
View user's profile Send private message
ssowmya

New User


Joined: 10 Oct 2006
Posts: 40

PostPosted: Fri Mar 23, 2007 5:06 pm
Reply with quote

Thanks for the quick turn around. I just now checked the file definition and it says the file has no add/delete access.

Do u have any docs that explains about these EIBRESP codes. Or any link from where I can get the information???
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Mar 23, 2007 5:09 pm
Reply with quote

Where did you get the information on how to write the write statement?
Back to top
View user's profile Send private message
ssowmya

New User


Joined: 10 Oct 2006
Posts: 40

PostPosted: Fri Mar 23, 2007 5:11 pm
Reply with quote

I dont get U...U mean writing into ESDS file?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Mar 23, 2007 5:14 pm
Reply with quote

What CICS manual are you using as a reference on how to code the syntax of the EXEC CICS WRITE?
Back to top
View user's profile Send private message
ssowmya

New User


Joined: 10 Oct 2006
Posts: 40

PostPosted: Fri Mar 23, 2007 5:17 pm
Reply with quote

I didnt use manual. I used from existing program here...
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Mar 23, 2007 5:31 pm
Reply with quote

Well then, you are going to want to keep this url to the CICS Transaction Server for z/OS V3.1 so you always have access to the fine manuals like the CICS Application Programming Reference. In the chapter about WRITE you will find almost all the answers you want.
You can read the books online or download a PDF copy to keep on your PC in case you can't always connect to IBM.
You should to to the server site and get a copy of the Programming Guide too.
Back to top
View user's profile Send private message
ssowmya

New User


Joined: 10 Oct 2006
Posts: 40

PostPosted: Fri Mar 23, 2007 6:20 pm
Reply with quote

Thank you very much for all information

Have a nice day!!!

icon_biggrin.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 Using API Gateway from CICS program CICS 0
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Random read in ESDS file by using RBA JCL & VSAM 6
No new posts Parallelization in CICS to reduce res... CICS 4
Search our Forums:

Back to Top