Extracts attributes from a string.
Category: | Data Quality |
Returned data type: | Character |
Note: | The returned value is a value, token, or token value from the extract function. |
data quality dq string output integer o integer i /* Initialize DQ */ dq = dq_initialize() dq.loadqkb("EN") /* Extract using the "Product Attributes" Extraction definition (using QKB PD 2012A) */ o = dq.extract("Product Attributes", "DOOR RANCHERO WOOD 16X8 WHT") /* print all of the tokens we got */ print (o & " tokens filled") for i = 1 to o begin dq.token(i, output) print ("token #" & i & " = " & output) dq.value(i, output) print ("value #" & i & " = " & output) end /* to get a token's value by its name... */ dq.tokenvalue("Colors", output) print ("Colors = " & output)