Hello everyone,

I have an example of my data here. What I have here is an ID variable, the last four digits are a year, and the first one (or two) digits are the month. For example, ID "12000" means Jan 2000 or "112001" means Nov 2000. How can I create a new month-year variable based on the ID variable? And how can put them in ascending order? Thank you.

Code:
input ID 
12000
12002
22000
112001
end