嘗試從其他結構化數據集中刪除分頁標題標籤。沒有標題下面的工作:SAS導入 - 刪除標題行
data uk;
infile "/folders/myfolders/import/withheader.txt" truncover;
format promocode_order best10. date date9. time TIME8. code $20. singlecode $20. name $50. order_spend best8. shipping_cost best8. country_code $2.;
informat date DDMMYY10. time TIME8. ;
input @1 promocode_order @12 date @23 time @32 order_spend @45 shipping_cost @59 code/
name 1-50/
@1 country_code;
country_code="UK";
run;
但是有標題是一個問題。有沒有一種方法可以在導入之前遍歷文件並選擇要導入的記錄。我可以排除它是否以標題標籤開始/爲空。
謝謝!
您應該發佈一些顯示標題的示例數據。 – Tom