June 07, 2005, 02:46 PM
JenPrinting master file name in header
Does anyone have a trick for printing the master file name in the heading without hardcoding? For example, using the CAR file:
TABLE FILE CAR
SUM SALES
BY COUNTRY
BY CAR
HEADING
"SALES BY COUNTRY"
"SOURCE: CAR FILE"
END
How can I make the filename a variable?
June 07, 2005, 05:20 PM
reFOCUSingI did this one time when we had to flip between similar MAS files with different names (production vs dev).
-DEFALUT &HOLDFILE = 'CAR';
TABLE FILE &HOLDFILE
SUM RETAIL_COST DEALER_COST
BY COUNTRY
BY CAR
HEADING
"&HOLDFILE"
END
It does not really answer your question but it may give you some ideas. (Report painter does not like this.)
June 07, 2005, 05:50 PM
jimster06Take a look at WHENCE; it may be helpful.
Where is '-? TSO DDNAME ddname' when you really need it?
Sometimes I use USE for switching between test and prod followed with a ? USE.
Maybe this should be a NFR.