The DataQueueWriter component writes messages to AS400 Queues.
Configuration and Testing
The Configuration Property Sheet (CPS) of DataQueueWriter is shown in Figure 1.
Figure 1: Sample DataQueue Reader Configuration
The table below provides description for the properties in the CPS.
Property | Description |
---|---|
Host Name | Hostname or IP of AS/400 Server. |
User Name | Username. |
Password | Password. |
Queue Name | Name of AS/400 Queue. The complete path of the Queue has to be provided. |
Queue Size(bytes) | Size of above mentioned AS/400 Queue. If you want to write data to a queue whose exact size is not known, you can set to -1 so that the component uses the maximum entry length. If it is set to -1, make sure that the queue is already created. |
Auto Create Queue | Create queue automatically if it does not exist. It will also try to create the library (FIORANO1.LIB in Figure 1) if it doesn't exist, but make sure the user has sufficient privileges. |
Close Connection | If set to yes, then for each successful writing of a message, connection will be closed. |
The configuration can be validated using the Validate button. A sample result of the Validate operation is shown below.
Figure 2: Validating the configuration
Input Port: Message that should be sent to AS/400 Queue.
Output Port: Sends the status, if message was written in queue.
Functional Demonstration
Configure DataQueueWriter as shown in Figure 1.
Below figure shows a sample Event process in which DataQueueWriter writes messages sent by Feeder to Queue.
Figure 3: Event process showing the DataQueue Reader Component.
Sample Scenario
Sending a sample text message from feeder to DataQueueWriter.
Sample Input
The Figure 4 shows the sample input from the Feeder.
Figure 4: Sample input from the Feeder
Sample Output
The Figure 5 shows the status messages sent by the DataQueueWriter component.
Figure 5: Status messages sent by the DataQueueWriter component