PreviousNext
Help > Development > W-Language Functions for AS/400 > DataQueue functions > ASKeyDataQueueReceive > Example with the old syntax
Example with the old syntax

 

sdq_pcml is string =

<pcml version=="4.0">   

<program name="TESTDQ" > 

<data name="data" type="char" length=200" usage="input"/> 

<data name="key" type="char" length="10" usage="input"/>

</program> 

</pcml>

]

 

 

IF NOT ASKeyDataQueueReceive(sdq_pcml, "*LIBL/DTAQ_KEY", "EQ", 2, True ,cnxConnection, data_read, key2) THEN

 Info("Empty data queue!"

END