Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
can i Pass variable length data to commarea from Java client

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: can i Pass variable length data to commarea from Java client
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: 2150
Location: At my coffee table

PostPosted: Mon Oct 08, 2007 5:30 pm    Post subject:
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    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Mon Oct 08, 2007 6:35 pm    Post subject:
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    Post subject:
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: 2150
Location: At my coffee table

PostPosted: Mon Oct 08, 2007 7:41 pm    Post subject:
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: 149
Location: Ottawa Canada

PostPosted: Tue Oct 09, 2007 7:47 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
This topic is locked: you cannot edit posts or make replies. Selecting two copybooks of different ... Vignesh Sid COBOL Programming 8 Tue Sep 05, 2017 7:28 pm
No new posts Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Extract Data till prev hour balaji81_k DB2 16 Fri Aug 25, 2017 9:25 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us