Hi, thanks the 3rd row is fine, sorry for the ambiguity. My problem is the 2nd row.
@ballardw So, do you mean minus signs are not allowed because the %H directive is showing hours?
@data_null__ indeed with '-%Hh %0Mmn' I get a minus sign output " -19h 50mn" with datatype=datetime,
but I'd like to modify the picture format to get "-4h 10mn" in the 2nd row.
in a datastep I would fix it with
PROC FORMAT;
picture mytime
low - high ='%Hh %0Mmn' (datatype=time);
RUN;
and
want=cats(ifc(dur<0,'-',''),put(abs(dur),mytime.));
But how can I do this with the picture format?
... View more