Reeza, I use the following code and when I transfer the file from Linux to windows files out put is - Product_id 123. However, when I edit the file out put is different - Product ID 1 2 3
Reeza wrote:
Yes it works on unix.
What does your data look like?
Another possibility is your text editor is garbling it. Try viewing it in something else or via the more command in unix.
You still haven't posted your code though.
data product; infile datalines; input product_id $; datalines; 1 2 3 ; filename outfile "/mnt/data01/test.txt"; data _null_; file outfile Encoding=u; set Product; if _N_ = 1 then put 'Product_id'; do _N_ = 1 to length(Product_id); id=substr(Product_id,_N_,1); put @1'id'n 10.; output; end; run;
... View more