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

Convert all numeric values of cobol to Java


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Sun Jul 19, 2009 6:05 pm
Reply with quote

Murali,

If you are doing a simple MOVE statement it will not work because you are basically trying to move from Numeric field to Character field. You will have to redefine the field in the Mainframe...

As mentioned before only if u give more details about the target system we will be in a position to help you better.
Back to top
View user's profile Send private message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Sun Jul 19, 2009 6:21 pm
Reply with quote

Binop,

Quote:

I am getting the values from container and store it in working storage variable,where the ws- variables are passed to program x. and i am getting the values from program x and i am putting into container to pass the data to java application.


So far i didn't get the data type for target system, but when the program is receiving from the container (Source/Target system) i am getting the values from java to COBOL ( ex. char(contains only numeric data)(java) to s9(4)comp) i am sending back the data after callin/manipulating the same variables since the requirement is to map the numeric data to char(java) i am moving the comp and comp-3 values to alphanumeric item and writting(Put container) into container.

Thanks,
Murali.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sun Jul 19, 2009 6:25 pm
Reply with quote

it seems to me that the topic has shifted from an obscure question
to the equivalence beween data types in COBOL and JAVA for interoperability
see for example
publib.boulder.ibm.com/infocenter/ratdevz/v7r5/index.jsp?topic=/com.ibm.ent.cbl.zos.doc/topics/PGandLR/tasks/tpjav03.htm

or google for ( that's how I found the link) "cobol java data types zos"

if multiplatform operation is involved investigate about endian-ness for binary data types
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Jul 19, 2009 8:18 pm
Reply with quote

Hi Binop,

You wrote:
Quote:
I guess the S9(9) COMP will take only 4 bytes...

You're right, I always seem to mis-recall the break point from 4 to 8 bytes. The line s/b:

S9(10) COMP X'FFFFFFFFFFFFFB2E'

I'll correct the orig post. Thanx for picking that up.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top