View previous topic :: View next topic
|
Author |
Message |
ramco_sita
New User
Joined: 25 Jun 2007 Posts: 40 Location: chennai
|
|
|
|
Hi
I am passing data to db2 database on z/os.
The java application that runs on windows will pass data to commarea in cics TS server programs using ECI Request.
The problem i have is for eg the commarea size defined in cics program is pic x(100).
But when i pass from java some time it may be 100 or it will be lesser than the cics cobol program.
But when pass less than 100 i get a Rc code -7.
it expects the exact length of the CICS cobol program.
I would like to know whether i have pass regardless 100 as it is in cobol cics program??? |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Who/what is producing the "Rc code -7"?
Either change the CICS program to allow lesser sizes or change the JAVA application to send only 100 bytes sizes...... |
|
Back to top |
|
|
ramco_sita
New User
Joined: 25 Jun 2007 Posts: 40 Location: chennai
|
|
|
|
JAva client gives a RC -7 when i pass a less than 100 length of commarea data.
if i pass exact 100 bytes it works fine. I just wanted to know if i had specified the max length in cobol commarea as pic x(100).
and pass some times data length 50 to cobol commarea from java.. |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
The JAVA client is passing the date and when it passes less than 100 bytes it (the JAVA client?) gives the -7? |
|
Back to top |
|
|
ramco_sita
New User
Joined: 25 Jun 2007 Posts: 40 Location: chennai
|
|
|
|
yes. All i wanted to know is it possible to send less than the defined size (100 bytes) from java client.
As of now i have defined as 100 in my java client and made it work.
If it is possible to send less than the defined size of the commarea length from java, please suggest me how it can be done?
Thanks! |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Yes, it is possible, just make sure the CICS program knows that not all 100 bytes are there and tell the JAVA program to stop giving the -7..... |
|
Back to top |
|
|
TG Murphy
Active User
Joined: 23 Mar 2007 Posts: 148 Location: Ottawa Canada
|
|
|
|
Talk to the guys that maintain the CICS program. I would look for CICS logic that checks that value in the CICS system variable called EIBCALEN. They may find something like this:
IF EIBCALEN NOT = 100
Send back a nasty return code |
|
Back to top |
|
|
|