Hi JW, in the Query Builder, you can create a Computed Column using an Advanced Expression and then specify the expression: 4-cmiss(of Col1 - Col4) that is assuming your columns are named Col1, Col2, Col3 and Col4. If they are named something else such as A, B , C, D, E then you would use: 5-cmiss(A, B , C, D, E) the cmiss function counts the number of missing numeric or character columns and so you want to subtract that from the number of variables you have. For details on the cmiss function, see http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p1tth4ltf640din1ey86ubo2lky2.htm Cheers, Michelle Message was edited by: Michelle Homes
... View more