November 18, 2008, 01:06 PM
Spence-DEFAULTS &SYS_DATE = &DATEMDYY;
-TYPE &SYS_DATE.EVAL
November 18, 2008, 04:08 PM
susannah-DEFAULT &MYDATE = &YYMD.EVAL ;
works for me.
but when prompting, (as in Report Caster), you need to explicitly overwrite the '&YYMD.EVAL' with a number.
When running a fex from a launch page, it works just fine.
If you want to avoid prompting (but why would you?) then
-DEFAULTH &MYDATE = &YYMD.EVAL ;
Its the .EVAL at the end that does the trick.
Without it, focus thinks you're creating a variable called &MYDATE equal tothe character string '&YYMD';
November 18, 2008, 08:46 PM
WazUsing .EVAL is the safest way to do this as it gets evaluated before the line is.
Be wary of -DEFAULT with multiple levels of -INCLUDEs. See
2nd -DEFAULT in -INCLUDE overrides 1st -DEFAULT in Parent