Hi, (I'm using SAS Enterprise Guide 7.1) I'm trying to make a txt-file that can be read by a program on my computer. In order for the program to read the file, all values need to be placed on an exact position within the file. I have a dataset consisting of a number of character variables, some that have leading blanks and some that have trailing blanks. proc sql;
create table name as
select
'BI' as inter,
'4F' as type,
'25300 ' as account,
put(round(compress(sum(payment,tax),0.01)*100,z19.)) as amount,
put(intnx('Month' , &now. , 0 , 's'),YYMMDDN8.) as trans_date
from source; When exporting the dataset to txt-file I need the length of the variables to remain the same, i.e. the txt-file needs to include leading and trailing blanks. I've tried using proc export, but the blanks are removed. proc export data=name outfile="c:\name.txt" dbms=dlm replace;
putnames=NO;
delimiter='';
run; Any idea on how to do that? Thanks!
... View more