>>Hi everyone,
>>
>>I have "Syntax error" on this line of code (not my application):
>>&cmd.
>>
>>cmd=[do stats.app with 'run', '2YearsRpt', 'vAllConfigs','\redp\dbc\'+oJC.curState+'\'+oJC.curState+'Stats',ojc.outtable,oJC.CalYear, , oJC.ccode, oJC.CalPeriod]
>>All oJC properties have thier values:
>>oJC.outTable="redp\Putput\Stats\Harford"
>>oJC.curState="CT"
>>oJC.CalPeriod="12"
>>oJC.CalYear="2000"
>>oJC.ccode="31"
>>
>>Could it be a problem, what one parameter is skipped?
>
>Nadia, try with:
>
>
>cmd = [do stats.app with 'run','2YearsRpt','vAllConfigs','\redp\dbc\',']+ ;
> oJC.curState+'\'+oJC.curState+'Stats' + [','] + ojc.outtable + [','] + ;
> oJC.CalYear + [',' ','] + oJC.ccode + [','] + oJC.CalPeriod + [']
>&cmd
>
Thanks, Luis. I may try this syntax, but the strange thing is, that the similar code works just fine. Something weird is going on here...
If it's not broken, fix it until it is.
My Blog