Hi, I am facing similar problem. Text = "The current time is 11:34:34 PM. Have a nice day"; We need to extract the time i.e. 11:34:34 PM from the Text and convert it to military time in the dataset i.e. 21:34:34. What I did was - data test; Text = "The current time is 11:34:34 PM. Have a nice day"; time = input(substr(text,21,11),timeampm.); run; I am getting the following error: timeampm informat not found. Please help.
... View more