Thank you for your answer. I'm sorry, I'm new here. And yes I was a little too hasty when I created the example data it seems. But I will try my best to be more informative, here is the log where the error ocurred (english isn't my mother's tongue so the variables has other names in my program, but it means the same thing): NOTE: The data set WORK.PREMIER has 134077 observations and 10 variables.
NOTE: DATA statement used (Total process time):
real time 4.13 seconds
cpu time 0.18 seconds
83 data premier2 (keep=Forsnr SkadeAr);
84 set premier;
85 do SkadeAr = year(input(begynnelsedatum,yymmdd8.)) to
85 ! year(input(forfallodatum,yymmdd8.));
86 output;
87 end;
88 run;
NOTE: Numeric values have been converted to character values at the places given by:
(Line):(Column).
85:25 85:66
NOTE: Invalid argument to function INPUT at line 85 column 60.
NOTE: Invalid argument to function INPUT at line 85 column 19.
ERROR: Invalid DO loop control information, either the INITIAL or TO expression is missing or the
BY expression is missing, zero, or invalid.
... View more