BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Thanks for the post Tom.  Yes, holding the pointer over might work.  The problem is that the data is coming from a large database organization, so we will have many databases, with different strucutures.  Even if I had the time to go through each and check what fields this happened in and code around the issue, it should have been noted/fixed before.  So I have a ticket in with SAS Support, and I will get back to the DB supplier to see why these specials are being sent in the first place.  Not my job to fix commericial products :smileylaugh:

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Hi,

Just to finalise this post.  Support sent me some code posted below, which is working for me as an intermediary setup.

data _null_;

     infile "s:\temp\rob\x.csv" recfm=n;

     file "s:\temp\rob\y.csv" recfm=n;

     retain Flag 0;

     input a $char1.;

     if a = '"' then

         if Flag = 0 then

             Flag = 1;

         else

             Flag = 0;

     if Flag = 1 then

         do;

         if a = '0D'x then

             do;

             goto exit;

             end;

         if a = '0A'x then

             do;

             goto exit;

             end;

         end;

     put a $char1.;

EXIT:

run;

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
  • 16 replies
  • 7445 views
  • 6 likes
  • 4 in conversation