@JeffMeyers The problem is little bit different now. I have used the format as eval(put(ifn(paramcd="MDS", avisitn,.),vs.)). I have now used type=linear for xaxisopts as the visit numbers are not equidistant. However, I got warning as: WARNING: SCATTERPLOT statement has a conflict with the axis type. The plot will not be drawn. WARNING: SERIESPLOT statement has a conflict with the axis type. The plot will not be drawn. I think linear axis option is not compatible with put fuction due to conversion to character format. Is there any way to solve this? The format "vs" is defined as: proc format; value vs 2="Pre-D0" 3="Post-D0" 6="Pre-W3" 7="Post-W3" ; run;
... View more