BookmarkSubscribeRSS Feed
abbieagocs
Fluorite | Level 6

I am trying to make use of the -confi g option to enable use of the UTF8 sas on linux.

 

I cannot change the sas link which points to bin/sas.

 

sas -config "file.cfg file2.cfg"

sas -config (file.cfg file2.cfg)

sas -config 'file1.cfg, file2.cfg'

 

All fail.  Any suggestions?

 

 

3 REPLIES 3
Shmuel
Garnet | Level 18

Why do you need two config files?

Prepare each config filke with all requiered options, adapted to your needs,

and submit with the one you want, either file1.cfg or file2.cfg

PaigeMiller
Diamond | Level 26

I could see, for example, a global CONFIG file and then you want to update the config based on specific requirements for a given project, thus two CONFIG files; although you could also combine these into a single CONFIG file for this specific project, which seems like it eliminates the problem of multiple CONFIG files.

 

Nevertheless, the SAS documentation for z/OS states

 

Note: SAS system options that you specify in the user configuration file override system options that are specified in the system configuration file.
Normally, CONFIG is specified as a PROC option or REXX or CLIST option, and not as a SAS command line system option. However, it can be specified as a SAS command line option. Unlike most such options, if there are multiple instances of CONFIG= on the command line, all instances are processed instead of just the last one. You can take advantage of this to mix types of configuration files that cannot be concatenated. For example, to append a private UNIX configuration file named ~/sas.cfg in batch JCL, use one of the following statements:
//         OPTIONS='CONFIG=CONFIG CONFIG="~/sas.cfg"'
or
//         OPTIONS='CONFIG=(CONFIG "~/sas.cfg")'
Explicitly specifying the default of CONFIG=CONFIG allows the second CONFIG= value to be appended to the default instead of superseding it.
 
 

As I have never tried this, I can't comment further on this matter. I also don't know if this works for other operating systems.

--
Paige Miller

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 3 replies
  • 1166 views
  • 0 likes
  • 4 in conversation