I tried that, this is what I get in the log:
47 data long2;
48 set long1;
49 year = input(scan(_name_,2,"_"),4.);
50 select (substr(scan(_name_,1,"_"),2));
51 when ("I") m = 1;
52 when ("II") m = 4;
53 when ("III") m = 7;
54 when ("IV") m = 10;
55 end;
56 qtr = mdy(m,1,year);
57 format qtr yyq7.;
58 qtr1 = put(qtr,myqtr.);
------
48
ERROR 48-59: The format MYQTR was not found or could not be
loaded.
59 drop _name_ m year;
60 run;
NOTE: The SAS System stopped processing this step because of
errors.
WARNING: The data set WORK.LONG2 may be incomplete. When this
step was stopped there were 0 observations and 4
variables.
WARNING: Data set WORK.LONG2 was not replaced because this step
was stopped.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds
... View more