Please note that this condition if first.pid then _iorc_ = ifn (exercise, 0, 1) ; will not work as specified in the initial post if the variable exercise takes negative values. To work around that the condition should be if first.pid then _iorc_ = ifn (exercise gt 0, 0, 1) ;
... View more