PreviousNext
Help > 32-bit version of the RAD Studio IDE > AS/400 Functions > DataQueues description
DataQueues description

 You can also create procedures for all type of known AS/400 Data Queues: simple file (FIFO) or keyed file (KEYED).

 

“DTAQ_FIFO” is an example based on simple dataqueue while “DTAQ_KEY” is an example with keyed procedure.

 

1.     Start the “ Easycom Stored Proc Configuration ” in the program group “ ACE400 ”.

 

2.     In the “ Stored Procedure configuration ” window, select “ New Procedure ”.

 

3.     Complete the dialog box "Procedure definition" :

         Procedure Name : This name will be the only one used on the client side.

         Description : Enter any text to describe your DataQueue,

         AS/400 Program Name : Path (<Library>/ <Program>) to the DataQueue,

         Program/DataQueue : "DataQueue".

 

4.     Describe the fields of your Data Queue. Using “ + ”, “  ” or “ M ” buttons, you can add, delete or modify fields.

 

In the description of the DataQueue format, you have to create three fields used by Advanced Client Easycom/400 for Delphi.

 

         TIMEOUT : ‘char’ type , size 6 Time-out reading delay,

         FILER  : ‘char’ type , size 2 Future use,

         ORDER : ‘char’ type, size 4 Kind of key operation
(DataQueue KEYED),

 

In case of Keyed Data Queue, fourth field is the key.

 

 

Complete the next Dialog box "Parameter field edition»:

 

         Field Name : Virtual name of the field,

         Field usage : No meaning for the DataQueue.

         This field is a parameter or the 1st of a Data Structure : No meaning for the DataQueue,

         AS/400 format : Describe exactly which data format your program expects : Data Type, Number of characters or digits for a decimal value, and the number of decimals,

         PC format : Describe how you want the data to be converted by Easycom.

 

You can use this process to describe several Data Queues, and you can provide multiple descriptions for the same Data Queue, if needed.