BookmarkSubscribeRSS Feed
LL5
Pyrite | Level 9 LL5
Pyrite | Level 9

Hi Quentin, thanks for this alternative and creative solution. I have noncontiguous ranges but this approach would be helpful to other work situation. Thanks again. 

Quentin
Super User

I guess for noncontiguous you could try a hack like:

data inv_sept ; 
  set sale."sale_sept$A:C"n;  /*Read cols A-C*/
  set sale."sale_sept$E:F"n;  /*Read cols E-F*/ 
run;
The Boston Area SAS Users Group (BASUG) is hosting our in person SAS Blowout on Oct 18!
This full-day event in Cambridge, Mass features four presenters from SAS, presenting on a range of SAS 9 programming topics. Pre-registration by Oct 15 is required.
Full details and registration info at https://www.basug.org/events.
Tom
Super User Tom
Super User

Talk to whoever in your company is responsible for setting up SAS.  It is their job to enable you to be able to run SAS with the settings you need. 

  • If you are running SAS from the command line then they can create a different command (or add an option to the existing command) to launch SAS with proper encoding. 
  • If you are using SAS/Studio or Enterprise Guide or other method to connect to a SAS session running on an application server then they can create a separate connection for you to use to launch a SAS session using the encoding you need. 
  • If you are using Windows and launching SAS from the desktop then they can make "icons" that appear in your Start menu to launch SAS using the encoding you need.
LL5
Pyrite | Level 9 LL5
Pyrite | Level 9

Thanks Tom. The SAS programs are ran in batch under Unix, so it may not help even I update my SAS E.G session. I informed the SAS administrator about the warning message, it just seems there might be no way to fix this issue by simply updating the SAS code. But all the information I collected here are helpful for me to understand the reason. 

Tom
Super User Tom
Super User

@LL5 wrote:

Thanks Tom. The SAS programs are ran in batch under Unix, so it may not help even I update my SAS E.G session. I informed the SAS administrator about the warning message, it just seems there might be no way to fix this issue by simply updating the SAS code. But all the information I collected here are helpful for me to understand the reason. 


So currently you are running a command like this:

sas myprogram

So either have them make a new command you can use or add an option to the existing command so that you can instead using a command like one of these.

sas_u8 myprogram
sas -u8 myprogram
LL5
Pyrite | Level 9 LL5
Pyrite | Level 9

Thanks Tom again for all the advice. 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 20 replies
  • 17301 views
  • 3 likes
  • 6 in conversation