BookmarkSubscribeRSS Feed
SASdevAnneMarie
Barite | Level 11

Hello Experts,

 

My SAS program doesn't work, because I have a flash "->"  instead of point "." before the CRLF:

MarieT_0-1637053794976.png

Do you know, pease, how to replace this special character automatically via Notepad++ ?

 

Thank you very much !

2 REPLIES 2
Ksharp
Super User
Just copy this character into REPLACE dialogue window ?
Tom
Super User Tom
Super User

Is that character in the source code for your program? Or some data file your program is reading?

 

Either way try looking at the file using SAS to see what actual hex code it is that is there before the end of line.

Perhaps by running a program like this to get the last byte before the end of line for each line in a file.

data lastch ;
  infile 'myfile.txt' length=linelength truncover;
  row+1;
  input @;
  if linelength > 0;
  input @linelength char $char1. ;
  hex=put(char,$hex2.);
run;

proc freq data=lastch;
  tables hex*char / list;
run;

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 2 replies
  • 266 views
  • 0 likes
  • 3 in conversation