Focal Point
Printing master file name in header

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5171068331

June 07, 2005, 02:46 PM
Jen
Printing 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
reFOCUSing
I 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
jimster06
Take 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.