redefine num variable as char variable
If you have numeric data (subject numbers for example). If you want to convert to a character variable and still have. the sort sequentially then you must zero fill the data. charvar = STRIP(PUT(numvar, z2.)); Example: