As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at email@example.com and provide your corporate email address, company, and name.
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
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003