You need to locate the hash item and then use the token identifiers to access each section of the data from that hash item.
Example:
Code:
var %data = $hget(hash1,item3)
echo -a number of tokens: $numtok(%data,32)
echo -a first token: $gettok(%data,1,32)
%data = $puttok(%data,ABCD,1,32)
echo -a new first token: $gettok(%data,1,32)
hadd hash1 item3 %data
Example:
Code:
var %c = 0, %cc = $hget(hash1,0).item
while (%c < %cc) {
inc %c
var %item = $hget(hash1,%c).item
var %data = $hget(hash1,%item)
var %i = 0, %ii = $numtok(%data,32)
while (%i < %ii) {
inc %i
echo -a Item: %item Data %i $+ : $gettok(%data,%i,32)
}
}
}