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:writeDataQ
 
wm.as400.access:writeDataQ
Writes an entry to the data queue. This service allows a user to write to both Sequential and Keyed data queues.
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.
QName
String The name of the data queue to write data to. The queue name must be 1 to 10 characters.
Example:
MYQUEUE
Note:
Use the libraryName field to specify the QUEUE Library else the Qname should contain the fully qualified integrated file system path name of the data queue.
Example:
/QSYS.LIB/myLibrary.LIB/MYQUEUE.DTAQ
libraryName
StringOptional. The library in which the data queue exists. It must be 1 to 10 characters.
Note:
Use this field only if the QName does not contain the fully qualified integrated file system path name for the program.
If you specify libraryName as %ALIAS_CURLIB% then the library name specified as the current library while configuring the connection alias is used.
Note:
You cannot specify %ALIAS_CURLIB%, if the field $AS400Alias is empty.
RecordMetaData
Record Definition of the record to be written to the queue as follows:
*DataName. The name of the record field.
*DataType. The AS/400 data type of the record field.
*DataLength. The length of the record field. For decimal types type xx.yy, for example, 5.2.
RecordData
Record The values (Name/Value Pair) corresponding to the record to be written to the queue as follows:
*Name. The name of the record field.
*Value. The value of the record field.
recordKey
Record Definition of the key used to search the keyed data queue for an entry. Leave this field blank if the entry was read from a sequential data queue. The values are as follows:
*KeyType. The AS/400 data type of the key.
*KeyLength. The length of the key.
*KeyValue. The key value used to search the data queue for an entry.
Output Parameters
Success
String The status of the operation. Contains true if the data queue read was successfully created else contains false.
Examples
wm.as400.sample.simpleDQ:writeDataQ
wm.as400.sample.keyedDQ:writeKeyedData