I have a variable "date" In most instances the date is reported as "YYYYMMDD" but in some instances the day is missing, so I only have "YYYYMM" I ultimately want a date variable which looks like "MM/DD/YYYY" I know that if everything in the original date variable was "YYYYMMDD" then I could do: new_date = input(put(date,8.),yymmdd8.); format new_date mmddyy10.; But since some "date" values are only 6 characters long it's throwing up error signs. I figure that if the date is missing I'll set the day to the first of the month. How could I set dates which only have a length of 6 to have a day value of "01" added to the end? I should be able to convert the new "YYYYMMDD" variable to "MM/DD/YYYY" myself afterwards. Thanks in advance
... View more