BookmarkSubscribeRSS Feed
margautz
Fluorite | Level 6

Hello!

 

I am new and I have a trivial issue with the text file output.

 

I put the .csv extension (double quotation mark as the text qualifier and comma as field delimiter), but I could not have an excel output file with one field in each column. It is like a .txt file

e.g.

ID,"name"

0,"AAA"

1,"BBB"

2,"CCC"

 

Thank you for your help!

 

2 REPLIES 2
Jagadishkatam
Amethyst | Level 16

considering that you have the data in a new.txt file as below and you try to create a csv file as jk.csv

 

ID,"name"

0,"AAA"

1,"BBB"

2,"CCC"

 

filename n '~path\new.txt';
data _null_;
infile n delimiter=',';
file '~path\jk.csv';
input;
put _infile_;
run;

Please try and let me know if it helps.

Thanks,
Jag
margautz
Fluorite | Level 6

Hello,

 

thank you for your reply.

 

Yes, I know can I create a csv using SAS, but with DataFlux I expect that I can create it directly.

In the course note of DataFlux there is a description to do that after the "Surviving Record Identification" explanation, but in my case it does not work and I would like to know if it is possible to do that also after the "Clustering".

 

Thank you again 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 935 views
  • 0 likes
  • 2 in conversation