Hi I’m getting number data, where the minus sign is at the and instead of in front. is there a possibility to change the format with Proc Formt ? I’m not so familiar with this function. Thanks for help. ist ANLN1 BUKRS ANLKL KANSW01 MENGE 000002500001 0001 00001258 8300.00- 1.000 000002500002 9600 00001258 20213.40- 1.000 000002500003 0300 00001258 28992.05 4.000 000002500004 0340 00001258 67450.00- 1.000 000002500008 0001 00001258 4001774.94 68.000 000002500011 2000 00001258 11306.65- 1.000 000002500013 0400 00001258 350451.05- 18.000 000002500018 2250 00001258 0.000 000002500019 0001 00001258 0.000 Soll ANLN1 BUKRS ANLKL KANSW01 MENGE 000002500001 0001 00001258 -8300.00 1.000 000002500002 9600 00001258 -20213.40 1.000 000002500003 0300 00001258 28992.05 4.000 000002500004 0340 00001258 -67450.00 1.000 000002500008 0001 00001258 4001774.94 68.000 000002500011 2000 00001258 -11306.65 1.000 000002500013 0400 00001258 -350451.05 18.000 000002500018 2250 00001258 0.000 000002500019 0001 00001258 0.000 My Approach: Data BASIS (drop=KANSW01_D)); retain ANLN1 BUKRS KANSW01 MENGE; set BASIS (rename=(KANSW01=KANSW01_D)); length KANSW01 8.; if index(KANSW01_D,'-') > 0 then do; KANSW01=input(cats('-',substr(KANSW01_D,1,index(KANSW01_D,'-')-1)),12.2); end; run;
... View more