Hello
I export a big SAS data set into txt file.
The txt file is with columns headers.
In the future I need to use this txt file and then I need to import it into SAS.
The problem is that when Iimport it then the header columns is in the rows of data instead of in the headers row.
What is the way to solve it?
proc export data=tbl1
outfile="/path/Revenue.txt"
dbms=tab replace;
run;
/*Import into SAS when need it*/
data Revenue;
infile "/path/Revenue.txt"
dlm='09'X dsd truncover;
input ID
branch
partition1 :$400.
partition2 :$400.
partition3 :$50.
SOURCE :$50.
revenue ;
run;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.