Has anyone been successful in creating a print command that incorporates a variable in place of a hard coded filename?
I have tried using one but I keep getting an error. Something to do with the single quotes. EXAMPLE SET DATE FORMAT YYYYMMDD SET VAR vJB = 'C:\JB'+CTXT(.#DATE)+'.txt' SET DATE FORMAT MM/DD/YY PRINT <report> WHERE <criteria> OPTION TXT|FILENAME .vJB return Unfortunately it does not like the single quotes (at least that's my assumption correct me if I'm wrong). Is there anyway around this? Thanks.

