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:stringValueToBytes
 
wm.as400.access:stringValueToBytes
Converts a String value of AS/400 data type to a byte Array[] containing the corresponding AS/400 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 use while converting AS/400 data type of String to a byte[]. If they are not provided the default encoding is used to convert the string.
AS400DataType
String The AS/400 data type of the String value 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.
stringValue
String String containing the AS/400 data type value that you would like to convert.
Output Parameters
$AS400Alias
String The connection alias of the AS/400 server.
Example
wm.as400.sample.conv.testBytesToSTring