Answered
Script Access to Variables and Datasets
Script access to dataset variables
var idoc = app.activeDocument;
var vars = idoc.variables;
for (j=0; j<vars.length; j++)
alert(vars.name + ' : ' + vars.pageItems[0].contents);
Looking for a way to access the variables and datasets but not sure where I'm getting it wrong. The above script from an earlier post did not seem to help.

