Please help me how to avoid sas changing the slashes in the code to a special character in the log. Is there any option I should use in the beginning of my sas programming?
Going over the log more, the likely culprit is
NOTE: Data file C.CAREFORMAT1920.DATA is in a format that is native to another host, or the file encoding does not match the
session encoding. Cross Environment Data Access will be used, which might require additional CPU resources and might reduce
performance.
ERROR: Some character data was lost during transcoding in the dataset C.CAREFORMAT1920. Either the data contains characters that
are not representable in the new encoding or truncation occurred during transcoding.
Show us what you mean. Show us the code. Show us the log. Paste the code as text into the box that appears when you click on the running man icon. Paste the log as text int on the box that appears when you click on the </> icon. Do not use file attachments.
I don't see anywhere that a special character appears. Please point it out for me.
@mannavak wrote:
I am also looking into it. I don't see any problem here. Might be there is a display problem. Thank you @ Paige Miller
Try pasting into a code box opened with the </>. Copy directly from the log and the paste into the code box.
The main message windows are likely going to treat your pasted text as HTML and will reformat text to remove white space. Font issues on conversion are also problematic.
Thank you.
for the time being, I created a work dataset from the dataset from another platform which I am reading. That's solving the problem temporarily.
Looks like that's the culprit.
Now, show us exactly where a slash was turned into a special character.
Best would be to copy the Code, indicating just which slash is involved,
Then from the LOG, best pasted into a code box on the forum, opened using the </> icon, directly after copying from the log to preserve formatting, and again show or indicate which slash was changed.
I see lots of slashes in that log entry so it is extremely hard to guess what may have started as a slash that appears differently in the log.
Presuming this issue is in desktop SAS.
The Editor and LOG window may be using different fonts for displaying their content.
If the Editor window (Enhanced Editor) and the LOG window have different fonts, some characters (above '7f'x) may appear differently.
Enhanced Editor window font setting (whilst Editor window active)
- Tools / Options > Enhanced Editor, Font section Name: drop down will show you the setting
- or use command EDCMD CUSTOMIZE
LOG window font setting (whilst LOG window active)
- Tools / Options > Fonts will show you the current font setting
- or use command DLGFONT
Going over the log more, the likely culprit is
NOTE: Data file C.CAREFORMAT1920.DATA is in a format that is native to another host, or the file encoding does not match the
session encoding. Cross Environment Data Access will be used, which might require additional CPU resources and might reduce
performance.
ERROR: Some character data was lost during transcoding in the dataset C.CAREFORMAT1920. Either the data contains characters that
are not representable in the new encoding or truncation occurred during transcoding.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Lock in the best rate now before the price increases on April 1.
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.
Ready to level-up your skills? Choose your own adventure.