Hi All,
I have a column (V_04) in a table, which is character. It has both charater values as well numberic values.
I want to print the values in excel for that coulmn in two different formats, for character value it should be $50. and numeric value it should be commax12.2 format.
I have used the below code. but it is not giving the expected value, that is commax12.2
compute V_04;
If FMT="N" then do;
call define(_COL_,'format','commax12.2');
end;
else do;
call define(_COL_,'format','$50.');
end;
endcomp;
Could you help me to solve this issue.
Thanks you.
Regards,
Alex
... View more