I have a date var and I'm trying to create a new var with a format like: 10/02/2023 Mon. I thought the following would work, but the format for the vars are not kept in the new var. Concatenating the vars keeps the original numeric format. RECEIVE_DT=DATEPART(SPECIMEN_RECV_TIME); FORMAT RECEIVE_DT MMDDYY10.; DAYOFWEEK=WEEKDAY(RECEIVE_DT); FORMAT DAYOFWEEK WEEKDATE3.; REC_DT=RECEIVE_DT||DAYOFWEEK;
... View more