here i want to change the variable from char to numeric so i used input and i gave the format as well and i want to get the simplest way to create it. code :- data carz; set work.import (rename= (MSRP = MSRP1,Invoice = Invoice1)); MSRP = input(MSRP1, dollar12.); Invoice = input(Invoice1, dollar12.); format Invoice Dollar12.; format MSRP Dollar12.; drop MSRP1 Invoice1; run; log errors :- data carz; 64 set work.import 65 (rename= (MSRP = MSRP1,Invoice = Invoice1)); _ 214 23 _______ 79 ERROR 214-322: Variable name , is not valid. ERROR 23-7: Invalid value for the RENAME option. ERROR 79-322: Expecting a =. 66 MSRP = input(MSRP1, dollar12.); 67 Invoice = input(Invoice1, dollar12.); 68 format Invoice Dollar12.; 69 format MSRP Dollar12.; 70 drop MSRP1 Invoice1; 71 run;
... View more