Announcement
Collapse
No announcement yet.
How to convert java string to System I alphanumeric
Collapse
X
-
Pass the string object to the getBytes method from the String class.
Code:dcl-pr getBytes varchar(500) extproc(*java : 'java.lang.String' : *dclcase) end-pr; sfl1fld = getBytes (getColumnName(rsmd: %int(rrn)));
Leave a comment:
-
How to convert java string to System I alphanumeric
Hello, Im trying to move a java string to an alphanumeric System I subfile field. The compiler isnt allowing it. How do I convert java string to String to System i alphanumeric. I could noit find anything about it on google.
rsmd = jdbc_GetMetaData(rs);
colcnt = jdbc_GetColCount(rsmd);
dow (jdbc_nextRowMD(rsmd));
rrn = rrn + 1;
csrrrn = rrn;
clear sfl1;
sfl1fld = getColumnName(rsmd: %int(rrn)); <----
sfl1attr = getColumnTypeName(rsmd: %int(rrn)); <----
write sfl1;
enddo;
jdbc_freeResult(rs);
jdbc_freeResultMetaData(rsmd);
jdbc_close(conn);
Leave a comment: