lcMyReport = 'reportName' >REPORT FORM &lcMyReport TO...Just a little reminder.. use
lcMyReport = 'reportName' REPORT FORM (lcMyReport) TO...i.e. a name expression, because it is resistant to spaces in the filename. The first form (macro expansion) is not, unless you surround the variable and the & with quotes.
lcAlias = alias() ... select (lcAlias)Though this would work with macros as well, I prefer
lnWA = select() ... select (lnWA)because it doesn't break if there's no alias selected.