06-29-2016 03:41 AM
I have a variable called var4N, which is numeric type and has format pvalue6.4.
IN my case, var4N has the value <.0001.
I need to convert this to characer variaalbe.
If I try
I am getting 0.0001, instead of <.0001.
06-29-2016 04:02 AM
Well, if your numeric value is smaller than 0.0001, then you obviously need to give your format more digits to the right of the decimal point.
Try 10.8, for example:
24 data _null_; 25 x = 0.0000954; 26 x1 = put(x,10.8); 27 put x1=; 28 run; x1=0.00009540
06-29-2016 09:21 AM
The pvalue format does work, see:
24 data _null_; 25 x1 = .00001; 26 x2 = put(x1,pvalue6.4); 27 put x2=; 28 run; x2=<.0001