BookmarkSubscribeRSS Feed
dennis_oz
Quartz | Level 8

 

Hi is there any way we can read a field using infile or proc import for csv file removing the below ascii character 

dennis_oz_0-1590556721708.png

 

1 REPLY 1
Kurt_Bremser
Super User

This symbol is shown in word processors (when showing special characters is activated) to make end-of-lines visible. The line endings are necessary for the RECFM=V in SAS (used when reading CSV files) to work. You do not need to remove them, as the termination strings are automatically used to identify the text lines.

 

BIG HINT:

do NOT use word processors or spreadsheet calculators to view CSV files you want to import into SAS. Always use a proper text editor suited for programming, like Notepad++.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 942 views
  • 1 like
  • 2 in conversation