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

Hi,

I'm reading in many datasets and only extracting the vars I need using dictionary.colums.  However, these datasets have some encoding that I deed to remove as I'm getting some warnings in my log.  Here is my code:  Is there any place in my sql code I can pop in (encoding =ascii)?

 


proc sql noprint;
select distinct memname
into :var1 - :var9999
from dictionary.columns
where upcase(libname) = "DB" & index(name, strip(memname)||"DAT")^=0 and index(memname,'CODE')=0 & index(name,"IG2")=0 & index(name,"PTT")=0 & index(name,"SV")=0 ;
%let sets = &sqlobs;
quit;
%put &sets.;

 

 

Getting warnings like this in the log

INFO: Data file DB.PFT.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.
INFO: Data file DB.PH.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.
INFO: Data file DB.PK.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.
INFO: Data file DB.PKR.DATA is in a format that is native to another host, or the file encoding does not match the session

 

Help is appreciated!

 

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisNZ
Tourmaline | Level 20

These are not warnings.

When the dictionary accesses the tables to extract metadata, it encounters data sets that contain data encoded differently than your current session, or maybe these tables where created on a different host (such as UNIX or Linux).

As long as these tables are kept as is, the note will be displayed. nothing to worry about. 

You'd have to re-create them to get rid of that note. Be careful not to lose data.

 

View solution in original post

1 REPLY 1
ChrisNZ
Tourmaline | Level 20

These are not warnings.

When the dictionary accesses the tables to extract metadata, it encounters data sets that contain data encoded differently than your current session, or maybe these tables where created on a different host (such as UNIX or Linux).

As long as these tables are kept as is, the note will be displayed. nothing to worry about. 

You'd have to re-create them to get rid of that note. Be careful not to lose data.

 

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
  • 382 views
  • 0 likes
  • 2 in conversation