CURRENTLY DEFINED & VARIABLES STARTING WITH 'YYMD': &YYMD = 20131127 CURRENTLY DEFINED & VARIABLES STARTING WITH 'CurrentDate': &CurrentDate = i018-02-25
I obviously do not understand this sorry.
7.7.03, Windows HTML, Excel, PDF,
November 27, 2013, 03:43 PM
There is that book "1001 Ways to work with Dates", but alas i don't have one. i think DATETRAN might be one of those functions that is tough to make work on &vars, not sure. so, as you say, alot of use of EDIT, or... cheat. gets the job done, not quite as elegantly as you might like.. DEFINE FILE ibisamp/CAR RUN_DATE/YYMD WITH COUNTRY =&YYMD.EVAL ; DATE2/A10=DATETRAN(RUN_DATE, '(YYMD)', '(-)', 'EN', 10, DATE2) END TABLE FILE ibisamp/CAR PRINT DATE2 IF RECORDLIMIT IS 1 ON TABLE SAVE END -RUN -READ SAVE &newdate.A10 -TYPE &newdate
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID