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

can i Pass variable length data to commarea from Java client


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

New User


Joined: 25 Jun 2007
Posts: 40
Location: chennai

PostPosted: Mon Oct 08, 2007 5:22 pm
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Mon Oct 08, 2007 5:30 pm
Reply with quote

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
View user's profile Send private message
ramco_sita

New User


Joined: 25 Jun 2007
Posts: 40
Location: chennai

PostPosted: Mon Oct 08, 2007 5:37 pm
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Mon Oct 08, 2007 6:35 pm
Reply with quote

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
View user's profile Send private message
ramco_sita

New User


Joined: 25 Jun 2007
Posts: 40
Location: chennai

PostPosted: Mon Oct 08, 2007 6:42 pm
Reply with quote

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
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Mon Oct 08, 2007 7:41 pm
Reply with quote

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
View user's profile Send private message
TG Murphy

Active User


Joined: 23 Mar 2007
Posts: 148
Location: Ottawa Canada

PostPosted: Tue Oct 09, 2007 7:47 pm
Reply with quote

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
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts VB to VB copy - Full length reached SYNCSORT 8
Search our Forums:

Back to Top