In reply to Sanjay Matange.

Unfortunately, the STEPPLOT statement is only useful for functions that are piecewise constant. In general, you need to use the SERIES statement. Here is an example for which a step function is not appropriate:

data DiscontinuousFunc;
domain = 1;
do x = -1 to 0 by 0.2;
y = 0.5-x**2; output;
end;
domain = 2;
do x = 0 to 1 by 0.2;
y = 1-x; output;
end;
domain = 3;
do x = 1 to 2 by 0.2;
y = x**2 - 0.5; output;
end;
run;