Whats a data queue and how can it be used to transfer data to the AS/400?
A data queue is an AS/400 object that’s used to communicate between multiple programs. While data queues were originally intended for AS/400-to-AS/400 program communications, their high performance and low overhead also made them an excellent basis for client/server applications. Data queues can be organized by FIFO (First-In-First-Out), LIFO (Last-In-First-Out) or by a simple composite key value. When you build an AS/400 client/server application using data queues you will typically need to write an AS/400 HLL program that will act as the server. In this kind of scenario, one or more clients will add entries to one of more data queues. The AS/400 HLL data queue application server will retrieve the entries from the data queue(s) and them perform some type of processing. Finally, the AS/400 data queue application server will then send a response back to the client(s) by wrting a data queue entry that will be retrieved by the client programs. Client/server programs using data queues can