From a parent script, I am calling another script with the Include statement. This other script, call it child script, generates some output that is appended to output produced by the parent script. The output of the child script includes running the Distribution platform. The first time I run the parent script, the output from the child script is successfully appended to the one from the parent script. The second time I run the same script, after changing one choice that doesn't have anything to do with the distribution, I get the message "A command within the Distribution script was not recognized. No data to analyze", message which I believe is generated if the column variable is passed incorrectly to the Distribution code. Here is my code:
Example = Expr( c = Concat(":", colY << Get Name);
Eval( Substitute( Expr( rdist = Report(ldist = Current Data Table() << Distribution(
Continuous Distribution( Column(_col_), Vertical ( 0 ),
Fit Distribution( Log Normal (Density Curve(1)) ),
Fit Distribution( Normal (Density Curve(1))),
), Histograms Only ) ) ) ,
Expr(_col_),
Parse(c) )
) );
The code runs fine when I run it in isolation from the parent script.
Can someone help me out and tell me what am I doing wrong? Why does it work once, but not the second time around?