title 'Test COMPUTE expressions'. data list /w 1-3(a). begin data. 123 456 919 572 end data. *string y z(a6). *compute y=ltrim(lpad(w,6,'*'),'*'). *compute z=rtrim(rpad(w,6,'*'),'*'). string z(a6). compute x=number(w). compute y=number(w,f8). compute z=lpad(rpad(substr(string(x,f6),4,1),3,'@'),6,'*'). compute y=y+1e-10. if(x<=456) y=500. select if x<=456. compute #caseseq=#caseseq+1. list. list.