Hi experts,
I have a variable admitdt with a format $CHAR10. and displays value 21/07/2015.
I need to convert it in to YYMMDD10. format for which i have separated in to month date year separately and later using MDY function to join them as they cann't be converted directly to numeric by input function.
I'm using these formats to separate theall the 3 components out.
dt=input(substr(admitdt,1,2),best.); month =input(substr(admitdt,4,2),best2.);
year=input(substr(admitdt,7,4),best.); addt=mdy(dt,month,year);
The month data which is giving 7 after conversion for which i have tried using z2. informat by which it throws error by saying z2. informat is not found or loaded and gives blank to my surprise .
If there is a other way out, kindly help me out with some suggestion.
... View more