| Date: | Mon, 30 Jun 1997 16:26:46 +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: Macro variable for LINESIZE? |
|
Hi,
Did you try : %let lsize = %sysfunc(%getoption(LS));
It'll work on 6.12, but I think it should work with 6.11 too...
Regards,
\\\|///
\\ - - //
( @ @ )
+------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 Mon Jun 30 16:19 EDT 1997
>>>Nntp-Posting-Host: rltstats.his.com
>>>Mime-Version: 1.0
>>>Content-Transfer-Encoding: 7bit
>>>X-To: "Abelson, Robert" <RobertA@MOCR.OAPI.COM>
>>>X-Priority: 3 (Normal)
>>>Xref: paladin.american.edu comp.soft-sys.sas:40523
>>>Date: Fri, 27 Jun 1997 12:52:02 -0400
>>>From: Rob Thomas <rltstats@HIS.COM>
>>>Subject: Re: Macro variable for LINESIZE?
>>>To: Multiple recipients of list SAS-L <SAS-L@UGA.CC.UGA.EDU>
>>>
>>>I don't know of a macro var specifically for linesize, but this macro
>>>will get any SAS evironment variable from the options table. I run
>>>it from the autoexec.sas file at SAS initiation.
>>>
>>>%macro sysparms ;
>>>proc sql ;
>>> create table options as select optname, setting
>>> from dictionary.options where optname eq 'LINESIZE' ;
>>>data _null_ ;
>>> set options ;
>>> call symput('lsize',setting) ;
>>> run ;
>>>%mend sysparms ;
>>>
>>>
>>>
>>>
>>>Abelson, Robert wrote:
>>>>
>>>> Is there an automatic macro variable for LINESIZE? I'm running SAS 6.11
>>>> under Windows NT.
>>>>
>>>> TIA,
>>>>
>>>> Bob Abelson
>>>
>>>--
>>>======================================================================
>>>Advanced Data Analysis, Est.'89. Over 19 years experience with general
>>>statistical consulting and multi-platform SAS programming. Also: data
>>>conversions across platforms, media, and applications. Data con-
>>>version for '90 census, health, nutrition, and other govt databases.
>>>www.his.com/rltstats, rob.thomas@his.com, 301-949-8065
>>>======================================================================
|