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;

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 701 views
  • 0 likes
  • 3 in conversation