OPTIONS プロシジャ

1つ以上のオプションの情報の表示

1つ以上の特定オプションの設定を表示するには、PROC OPTIONSステートメントでOPTION=オプションとDEFINEオプションを使用します。次の例は、PROC OPTIONSが単一SASシステムオプションに対して作成するログを示しています。

proc options option=errorcheck define;
run; 

単一SASシステムオプションの設定

 ERRORCHECK=NORMAL
Option Definition Information for SAS Option ERRORCHECK
    Group= ERRORHANDLING
    Group Description: Error messages and error conditions settings
    Description: Specifies whether SAS enters syntax-check mode when errors are found in the
                 LIBNAME, FILENAME,  %INCLUDE, and LOCK statements.
    Type: The option value is of type CHARACTER
          Maximum Number of Characters: 10
          Casing: The option value is retained uppercased
          Quotes: If present during "set", start and end quotes are removed
          Parentheses: The option value does not require enclosure within parentheses.If
          present, the parentheses are retained.
          Expansion: Environment variables, within the option value, are not expanded
          Number of valid values: 2
               Valid value: NORMAL
               Valid value: STRICT
    When Can Set: Startup or anytime during the SAS Session
    Restricted: Your Site Administrator can restrict modification of this option
    Optsave: PROC Optsave or command Dmoptsave will save this option

2つ以上のオプションの設定を表示するには、オプションをかっこで囲み、スペースでオプションを区切ります。

proc options option=(pdfsecurity pdfpassword) define;
run;

2つのSASシステムオプションの設定

 PDFSECURITY=NONE
Option Definition Information for SAS Option PDFSECURITY
    Group= PDF
    Group Description: PDF settings
    Group= SECURITY
    Group Description: Security settings
    Description: Specifies the level of encryption to use for PDF documents.
    Type: The option value is of type CHARACTER
          Maximum Number of Characters: 4
          Casing: The option value is retained uppercased
          Quotes: If present during "set", start and end quotes are removed
          Parentheses: The option value does not require enclosure within parentheses.If
          present, the parentheses are retained.
          Expansion: Environment variables, within the option value, are not expanded
          Number of valid values: 3
               Valid value: HIGH
               Valid value: LOW
               Valid value: NONE
    When Can Set: Startup or anytime during the SAS Session
    Restricted: Your Site Administrator can restrict modification of this option
    Optsave: PROC Optsave or command Dmoptsave will save this option

 PDFPASSWORD=xxxxxxxx
Option Definition Information for SAS Option PDFPASSWORD
    Group= PDF
    Group Description: PDF settings
    Group= SECURITY
    Group Description: Security settings
    Description: Specifies the password to use to open a PDF document and the password used by a
                 PDF document owner.
    Type: The option value is of type CHARACTER
          Maximum Number of Characters: 2048
          Casing: The option value is retained with original casing
          Quotes: If present during "set", start and end quotes are removed
          Parentheses: The option value must be enclosed within parentheses.The parentheses are
          retained.
          Expansion: Environment variables, within the option value, are not expanded
          Number of valid values: 2
               Valid value: OPEN
               Valid value: OWNER
    When Can Set: Startup or anytime during the SAS Session
    Restricted: Your Site Administrator cannot restrict modification of this option
    Optsave: PROC Optsave or command Dmoptsave will not save this option

最終更新: 2026年9月18日