推 west1996: y法中建的telfmt expfmt是數字型格式,但input進來的 12/23 22:42
→ west1996: 是文字型變數,這樣套不進去 12/23 22:43
不過我原始資料中 電話是02-00000000 月支出是$10000 如果INPUT不打$也沒辦法出現 請問這樣要怎麼調整呢?
※ 編輯: houan1031 (114.198.186.123), 12/23/2017 22:56:13
推 melodyheyhey: proc format; 12/25 23:07
→ melodyheyhey: picture telfmt other='090)0000-0000' (prefix='( 12/25 23:07
→ melodyheyhey: '); 12/25 23:07
→ melodyheyhey: picture expfmt other='0000000,000' ( fill='*' pr 12/25 23:07
→ melodyheyhey: efix='NT' ); 12/25 23:07
→ melodyheyhey: run; 12/25 23:07
→ melodyheyhey: data a; 12/25 23:07
→ melodyheyhey: input tel comma11. exp comma9.; 12/25 23:07
→ melodyheyhey: exp=exp+99; 12/25 23:07
→ melodyheyhey: format tel telfmt.; 12/25 23:07
→ melodyheyhey: format exp expfmt.; 12/25 23:07
→ melodyheyhey: cards; 12/25 23:07
→ melodyheyhey: 02-22222222 $10,000 12/25 23:07
→ melodyheyhey: ; 12/25 23:07
→ melodyheyhey: proc print; 12/25 23:07
→ melodyheyhey: run; 12/25 23:07
→ melodyheyhey: 要先講讀進去的資料變成乾淨的數值(comma)才能再 12/25 23:08
→ melodyheyhey: 做轉換 12/25 23:08