Date: Thu, 17 Mar 2005 08:53:29 -0500
Reply-To: "Fehd, Ronald J" <RJF2@CDC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Fehd, Ronald J" <RJF2@CDC.GOV>
Subject: tip: OptionViewer
Content-Type: text/plain; charset="us-ascii"
good morning, krewe
you thought I had disappeared, eh?!
I'm busy writing new course material
and thought you'd enjoy this one:
Ron Fehd the SQL into:macro maven CDC Atlanta GA USA RJF2 at cdc dot
gov
OpSys: Win_Pro Ver: 9.1.3 (TS1M3)
--> cheerful provider of TESTED SAS code from the Clue?Gee!Wrx <--
Efficiency is intelligent laziness. -David Dunham
/* name: OptionViewer.sas
-------------: User Requirements:
description: view option and group
purpose: to show other options (the group)
associated with an option
-------------: Program Specifications:
program group: Research
program type: job
SAS type: code generator
input: Dictionary.Options
process: SQL and proc options
output: to log
usage: batch
author: Ronald J. Fehd
usage: enable mvar OptName
change this:
*Let OptName = config;
to this:
%Let OptName = config;
change notes:
RJF2 05Mar17 for class: Review of PC-SAS Batch Programming
*** .................................... */
%Let OptName = autoexec;
*Let OptName = config;
*Let OptName = echoauto;
*Let OptName = MautoSource;
*Let OptName = SASinitialFolder;
*Let OptName = SASuser;
*Let OptName = Set;
*Let OptName = Splash;
*Let OptName = Sysin;
%Let OptName = %UPCASE(&OPTNAME.);
PROC SQL noprint;
select Group
into :Group
from Dictionary.Options
where OptName = "&OptName."
;quit;
Proc Options define value
option = &OptName.;
run;
%Put Option &OptName. in Group &Group.;
Proc Options group = &Group.;
run;
/*\begin{TestSuite:log} ***************
Option Value Information For SAS Option SYSIN
Option Value: C:\temp\setupPC-SAS\ProjectO\OptionViewer.sas
Option Scope: Program OptionViewer
How option value set: SAS Session Startup Command Line
Option Definition Information for SAS Option SYSIN
Group= ENVFILES
... [snippage occureth] ...
41 %Put Option &OptName. in Group &Group.;
Option SYSIN in Group ENVFILES
42 Proc Options group = &Group.;
43
44 run;
SAS (r) Proprietary Software Release 9.1 TS1M3
APPLETLOC=C:\Program Files\SAS Institute\Shared Files\applets\9.1
Location of Java applets
FMTSEARCH=(WORK LIBRARY)
List of catalogs to search for formats and informats
/*\end{TestSuite:log} *****************/