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

Hi,

 

We use proc options, to list the values of global options.

Is there a similar procedure to list the values of procedures' options, etc.

e.g. how can I find out which value for "version=" option is used by the xlsx engine for a given installation beside looking at the SAS online doc?

 

Best Regards

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

@xxformat_com wrote:
Thanks for the support. I guess I have not formulate properly my request.
I'm not looking at the SAS installation product version
but at procedures' options default value and sas excel... engine default/actual options.

eg. libname ... excel '....xlsx' version=???;
what is the default/actual version used here? can I find it using a program?

The answer is NO.   In general since you are writing the code just remember what you wrote.

%let print_noprint = noprint;
proc sql &print_noprint;
...

Procedures are written to preform what they perform.  There is no concept of telling you want they are doing.  You tell them what to do.

 

There is some metadata available for LIBREF and FILEREF values by querying the DICTIONARY tables, but they do not normally have all of the options.  But you should be able to find out what path they are pointing to.

View solution in original post

5 REPLIES 5
xxformat_com
Barite | Level 11
Unfortunately not.
JerryV
SAS Employee

How about the function tslvl().  https://go.documentation.sas.com/?docsetId=hostunx&docsetTarget=p0fjexseegel6tn1w5solsj5gofg.htm&doc... 

 

If you're using EG you can:  

data a;
set _prodsavail;
licensed=sysprod(prodcode);
  do option='A', 'D', 'E', 'F', 'H', 'I', 'M', 'P', 'S', 'T' ;
    tslvl = tslvl(prodmod,option);
        output;
  end;
run; 

Otherwise try:

data b; 
prodcode='prodnum208';	prodmod='sasdbf';
  do option='A', 'D', 'E', 'F', 'H', 'I', 'M', 'P', 'S', 'T' ;
    tslvl = tslvl(prodmod,option);
        output;
  end;
run;

 

 

xxformat_com
Barite | Level 11
Thanks for the support. I guess I have not formulate properly my request.
I'm not looking at the SAS installation product version
but at procedures' options default value and sas excel... engine default/actual options.

eg. libname ... excel '....xlsx' version=???;
what is the default/actual version used here? can I find it using a program?
Tom
Super User Tom
Super User

@xxformat_com wrote:
Thanks for the support. I guess I have not formulate properly my request.
I'm not looking at the SAS installation product version
but at procedures' options default value and sas excel... engine default/actual options.

eg. libname ... excel '....xlsx' version=???;
what is the default/actual version used here? can I find it using a program?

The answer is NO.   In general since you are writing the code just remember what you wrote.

%let print_noprint = noprint;
proc sql &print_noprint;
...

Procedures are written to preform what they perform.  There is no concept of telling you want they are doing.  You tell them what to do.

 

There is some metadata available for LIBREF and FILEREF values by querying the DICTIONARY tables, but they do not normally have all of the options.  But you should be able to find out what path they are pointing to.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 880 views
  • 1 like
  • 3 in conversation