This message has been edited. Last edited by: MartinY,
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
September 14, 2015, 04:38 PM
Yes Martin I know this is working, but what I'm trying to accomplish here is that I don't have to do the separate SET for EDIT, but 'all in one' function just like the day is just one line.
WebFOCUS 8105m Windows 7, All Outputs
Member of the Benelux Usergroup
September 15, 2015, 04:34 AM
Does not work: -SET &DATTIT = IF &PERIOD EQ 'D' THEN DATETRAN(DATECVT(&DATE, 'I8YYMD', 'DMYY'), '(DMYY)', '(/)', 'EN', 10, 'A10') - ELSE IF &PERIOD EQ 'M' THEN DATETRAN(DATECVT(&DATE, 'I6YM', '(M)'), '(tr)', '(/)', 'EN', 10, 'A10')
It always helps to check the valid arguments for functions and check your own code. 'I6YM' is not a valid input date format and '(tr)' is not a valid input argument for DATETRAN. Use the correct formats and arguments and it works fine.