first, a .mas file doesn't hold dates, its a master file description. unless of course you're holding in an MSAccess file? are you?
Have your fex read that file for the HIGHEST 1 THURSDAY , or whatever your field is called.
If your fex launches from a parameter-driven launch page, then
1. read your hold file to get the highest thursday
-READ HOLD &DEFDAY.A8 (or whatever it is)
-DEFAULT &LAUNCH = 'LIVE';
-SET &MYDATE = IF &LAUNCH EQ 'LIVE' THEN &USERDAY ELSE &DEFDAY ;
where &USERDAY is the date selected by the user from a launch page, &DEFDAY is the date you read from your date file, and &MYDATE is the parm that your fex uses. When you launch this fex from a menu, you set LAUNCH=DEFAULT which overrides the default setting in the fex.
When you launch this fex from a parm-drive launch page, you have this parm hidden as LAUNCH=LIVE.
That's how we do it, anyway.
| In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID |