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???
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..
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?