do stats.app with 'run', '2YearsRpt', 'vAllConfigs',('\redp\dbc\'+oJC.curState+'\'+oJC.curState+'Stats'),ojc.outtable,val(oJC.CalYear), .f., oJC.ccode, oJC.CalPeriodYou have a name substitution in your fourth parameter (). You might do better to enclose the whole thing in [] and then do a name substitution in your code.