hi all i created a datastep to generate a delimited csv file.Code as below: Sources Code: data _null_; set etllib._101100_MonthlyDSFACT; FILE DelSum DLM=',' notitles header=headrtne; PUT WhsCode :$8. DocDate :yymmddn8. DocDueDate :yymmddn8. ItemCode :$20. Quantity ; return; headrtne: PUT @1 'WhsCode,DocDate,DocDueDate,ItemCode,Quantity'; return; run; Output: DelSum_20111012.csv WhsCode,DocDate,DocDueDate,ItemCode,Quantity B09,20110926,20110926,10423632,2 WhsCode,DocDate,DocDueDate,ItemCode,Quantity B11,20110926,20110926,10421902,1 My Expected Output is like this WhsCode,DocDate,DocDueDate,ItemCode,Quantity B09,20110926,20110926,10423632,2 B11,20110926,20110926,10421902,1 How can i do so with the data step. beside, i tried before using proc export to done the job.its provide me the nice output except the date format is following the sas date format /* proc export data=etllib._101100_MonthlyDSFACT file="F:\abc\&&FileNameD%sysfunc(putn(&&Todaydate,yymmddn8.))&&Extension" dbms=csv Replace; run; */ Is there other way to deal with it? Please help. Thank you: LiangCk
... View more