AS/400 Adapter 6.0.1 | webMethods AS/400 Adapter Documentation | webMethods AS/400 Adapter Installation and User’s Documentation | Built-in Services | Access Services | wm.as400.access:bytesToStringValue
 
wm.as400.access:bytesToStringValue
Converts a Byte Array (byte []) of AS/400 data type to a String containing the corresponding Java data type.
Input Parameters
$AS400Alias
String The connection alias of the AS/400 server.
$AS400
com.ibm.as400.access.AS400 (Optional). A connected AS/400 object.
Note:
Either $AS400 or $AS400Aliasshould be provided as an input. The AS/400 object is used to find out the correct encoding to be used while converting byte[] of AS/400 data type String to Java String. If the input is not provided the default encoding is used to convert the string.
AS400DataType
String The AS/400 data type of the Byte Array that you would like to convert.
AS400DataLength
String The length of the AS/400 data type. For decimal types, type x.y, for example, 5.2.
AS400ByteArray
Object Byte Array (byte []) containing the AS/400 data type value.
AS400DataOccurs
String The number of times the datatype occurs in the AS400ByteArray.
Output Parameters
stringvalue
StringList The String value of AS/400 byte array.
Example
wm.as400.sample.conv.testByteArrayToStrArray