My data looks like this:

I want it to look like
1987q1
1987q2
1987q3
1987q4
1988q1
1988q2
1988q3
1988q4 etc
where qtr has format %tq.
I tried
replace qtr=subinstr(qtr,"Jan to Mar","",.)+"q1" but this only works the first time round. Please advise.
Robert
I want it to look like
1987q1
1987q2
1987q3
1987q4
1988q1
1988q2
1988q3
1988q4 etc
where qtr has format %tq.
I tried
replace qtr=subinstr(qtr,"Jan to Mar","",.)+"q1" but this only works the first time round. Please advise.
Robert
Comment