Date: Wed, 30 Jul 1997 14:46:04 +0500
Reply-To: Bernard Tremblay <bernard@CAPITALE.QC.CA>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Bernard Tremblay <bernard@CAPITALE.QC.CA>
Subject: Re: scl calls within a data step?
Hi,
Why not use PROC SQL and query the dictionary.options table ???
or second option use the getoption(optname) function.
example:
85 data f1;
86 ls=input(getoption('linesize'),3.);
87 put ls=;
88 run;
LS=225
NOTE: The data set WORK1.F1 has 1 observations and 1 variables.
NOTE: Compressing data set WORK1.F1 decreased size by 0.00 percent.
Compressed is 1 pages; un-compressed would require 1 pages.
NOTE: DATA statement used:
real time 1.710 seconds
cpu time 0.107 seconds
Regards,
Bernard Tremblay
\\\|///
\\ - - //
( @ @ )
+------oOOo-(_)-oOOo----------+---------------------------------+
| Bernard Tremblay | |
| La Capitale | Tel: (418) 646-2401 |
| | Fax: (418) 646-5960 |
| | Int: bernard@capitale.qc.ca |
+-----------------------------+---------------------------------+
| Imaginasys enr | Res: (418) 878-4447 |
| | Int: bertrem@quebectel.com |
+---------------Oooo----------+---------------------------------+
oooO ( )
( ) ) /
\ ( (_/
\_)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>From owner-sas-l@UGA.CC.UGA.EDU Tue Jul 29 11:29 EDT 1997
>>>Date: Tue, 29 Jul 1997 10:28:14 -0500
>>>From: Dwight Eggers <eusdee1@EXU.ERICSSON.SE>
>>>Subject: scl calls within a data step?
>>>To: SAS-L@UGA.CC.UGA.EDU
>>>
>>>In the past I recall postings regarding undocumented features of
>>>base SAS of making calls to scl functions within a data step. Is
>>>there better documentation now? Has this been presented at a SUGI?
>>>
>>>What I am specifically looking for is a way to query individual options,
>>>similar to the OPTGET* scl functions. The only way I have of doing this
>>>now is with a PROC OPTIONS step with output to a dataset, then a datastep
>>>to reformat this output to parse out the desired setting. A macro or
>>>some way to invoke this set of scl functions would be a much more
>>>efficient way of handling this.
>>>
>>>Dwight.Eggers@ericsson.com
>>>