If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
And where are you going to "convert" it? Is this all to be done in Java? Or is this a value that is passed to some other program? (What program?) Why do you think it's not already a "400 alpha field"? Some additional explanation of the problem would help us know how to answer your question.
Tom
There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.
Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
You shouldn't need to convert it before writing it to a DB... the JDBC driver should automaticalyl convert Java strings. Unless you're writing it using some other method?
Im using RPG to call a java webservice. It's returning a string object. I need to update that string object into an i5 alpha field to display on a cgidev2 browser screen and update it into a DB.
Web services return data in XML. When you parse the XML on the RPG-side, you will have an alphanumeric string, not a String object. No special conversion should be needed.
C eval mapString =
C new_String('sdk_config.properties')
C eval oauth = new_OAuthTokenCredential
C (clntString: scrtString)
C eval json = getAccessToken(oauth)
Comment