I am trying to subtract one from a variable that is being passed through a portal. The variable is a year and comes back as a string. Every time I try to subtract one it gives me an error on the -. I have tried numerous ways but cannot find one that works. Any ideas on a better way to do this?
-DEFAULT &MBR_YEAR = '2014'; -SET &DATA_YEAR = &MBR_YEAR-1;This message has been edited. Last edited by: Nyssa Darter,
WebFOCUS 8.04 Windows 7, All Outputs
October 20, 2014, 05:03 PM
Waz
If you can guarantee that the variable is only numeric, then just add .EVAL to the -SET command.