f



Re: newbie question re:reading in and recoding SAS dataset

Jan,

I agree with Toby that you have a problem with the variable brainmt.  It
is commented out of your first else statement, but still exists in the
initial if statement.

A second potential problem seems to exist in the first else statement.
While you indicate that you want case to be equal to one for anyone who
had some kind of subsequent cancer, your code only counts them if they
have had every type of cancer (except for the missing commented out
brainmt.

Might you have meant to code:

>300      else if cancer =1 and (any_skin=1 or any_meln=1 or anymouth=1
>or any_lung=1 or
>300! anybowel=1
>301      or any_stom=1 or any_panc=1 or anyliver=1 or anylymph=1 or
>any_leuk=1 or any_mm=1
>301!  or
>302      any_kidn=1 or any_blad=1 or anybreas=1 or anyutern=1 or
>any_test=1 or anyovary=1
>302! or
>303      anyprost=1 or anyother=1 or /*brainmt=1 or */ unclr_mb=1 or
>unclr_mt=1 or
>303! unclr_st=1 or
>304      anycerv=1 or anycolo=1 or anyrect=1 or anythyr=1 or
>anyesoph=1 or brain_mb=1 or
>304! anyutoth=1)
>305      then case =1;

Finally, you are not assigning any value to case if Cancer is missing, but
that may be by design.

Art
---------
On Thu, 22 Sep 2005 09:47:27 -0700, J McClure <mc006@PACBELL.NET> wrote:

>Hi,
>I am a doctoral student in epidemiology. I have no support at school for
>SAS programming and would greatly appreciate help creating a new
>variable from my dataset. (The SAS programming skills are not part of
>the assignment)
0
art297 (4213)
9/22/2005 9:51:27 PM
comp.soft-sys.sas 142828 articles. 3 followers. Post Follow

0 Replies
504 Views

Similar Articles

[PageSpeed] 35

Reply:

Similar Artilces:

Re: Sas Question (Re-organizing dataset)
Perhaps this can be adapted to your needs. You may want to rename COL1 and drop _NAME_. data work.code; input name:$8. (code1-code3)(:$3.) amount:comma8.; format amount dollar8.0; cards; Leroy X13 H42 G91 $4,900 Mary D14 X42 X41 $8,100 Lynn C45 X41 H99 $3,000 ;;;; run; proc print; run; proc transpose data=work.code out=work.codeT; by name notsorted amount; var code1-code3; run; proc print; run; On 9/18/06, wardnine@hotmail.com <wardnine@hotmail.com> wrote: > Suppose I have a dataset with the variables name, code1, code2, code3, > and amount. The dataset is thousands of lines long, but here is a > 3-line sample (the order of the 5 variables of data is the same as the > order of the variables I list in the first sentence of the post)... > > Leroy X13 H42 G91 $4,900 > Mary D14 X42 X41 $8,100 > Lynn C45 X41 H99 $3,000 > > I need to re-arrange the data so that the name and each code on each > row is assigned the amount on that row and for each variable and > corresponding amount to appear on a separate line. So, I would need the > following dataset: > > Leroy X13 $4,900 > Leroy H42 $4,900 > Leroy G91 $4,900 > Mary D14 $8,100 > Mary X42 $8,100 > Mary X41 $8,100 > Lynn C45 $3,000 > Lynn X41 $3,000 > Lynn H99 $3,000 > > Is it possible to do this? > > Julie > ...

Re: How to read a SAS log into a SAS dataset.
lazybone2k@GMAIL.COM wrote: > >Dear SAS-L listers, >This may be the millionth time somebody is asking this question " how to >read a SAS log into a SAS dataset?". I looked at previous posts and >gathered info from various SUGI papers and found a way to get the log and >read it. But i dont know for some reason its not working. Please help me. >I used a Proc printto procedure to print the log to a external file >location and try to read in the log and create a SAS dataset which will >contain info about Filename, Owner name, Group name, Elapsed time, CPU >time, Dataset name. >***************Sample log file******************************** > data Purchmeta_US (keep=Name Start Length Description); >SYMBOLGEN: Macro variable METAPATH resolves >to /export/home/anjapara/838594.meta >41 infile "&metapath" ; >42 input @ 'Field name="' name1 :$17. @; >43 a=index(name1,'" '); >44 name=substr(name1,1,a-1); >45 input @'col="' Start :$3. @ 'len="' length :$1.@; >46 input @'<Description>' Desc &$100.; >47 i=index(Desc,'</'); >48 description=substr(Desc,1,i-1); >49 run; > >NOTE: The infile "/export/home/anjapara/838594.meta" is: > File Name=/export/home/anjapara/838594.meta, > Owner Name=anjapara,Group Name=rg...

Re: Is it possible to read a sas dataset NOT using sas?
You might try the Universal OLE DB driver. Docs at: http://tinyurl.com/2cmgcf Driver page at: http://tinyurl.com/2hbc23 I think this should allow you to read a sas data set but not write to it. Also, the driver does not support much beyond a Select * clause. Phil Rack www.minequest.com -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of RolandRB Sent: Tuesday, March 18, 2008 9:44 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Is it possible to read a sas dataset NOT using sas? Is it possible to read a sas dataset NOT using sas and have observations and variables etc. rather than having meaningless chunks of text? ...

Re: Sas Question (Re-organizing dataset) #2
Here's a simplistic alternative. It provides the indicated ordering of the variables. data need(keep = name code amount); set code(rename = (code1=code) ); output; code = code2; output; code = code3; output; run; On Mon, 18 Sep 2006 19:43:46 -0400, data _null_; <datanull@GMAIL.COM> wrote: >Perhaps this can be adapted to your needs. You may want to rename >COL1 and drop _NAME_. > >data work.code; > input name:$8. (code1-code3)(:$3.) amount:comma8.; > format amount dollar8.0; > cards; >Leroy X13 H42 G91 $4,900 >Mary D14 X42 X41 $8,100 >Lynn C45 X41 H99 $3,000 >;;;; > run; >proc print; > run; >proc transpose data=work.code out=work.codeT; > by name notsorted amount; > var code1-code3; > run; >proc print; > run; > >On 9/18/06, wardnine@hotmail.com <wardnine@hotmail.com> wrote: >> Suppose I have a dataset with the variables name, code1, code2, code3, >> and amount. The dataset is thousands of lines long, but here is a >> 3-line sample (the order of the 5 variables of data is the same as the >> order of the variables I list in the first sentence of the post)... >> >> Leroy X13 H42 G91 $4,900 >> Mary D14 X42 X41 $8,100 >> Lynn C45 X41 H99 $3,000 >> >> I need to re-arrange the data so that the name and each code on each >> row is assigned the amount on that row and for ...

Re: Sas Question (Re-organizing dataset) #3
Ward , If you have a whole bunch of vars wth no standard nameing scheme I would recommend proc transpose. But you them all starting with 'code' and ending with asequential number. Easy enough: Data Have ; Infile Cards ; Input Name $ Code1 $ Code2 $ Code3 $ Amount $ ; Cards ; Leroy X13 H42 G91 $4,900 Mary D14 X42 X41 $8,100 Lynn C45 X41 H99 $3,000 ; Run ; Data Need ( Drop = Code1 Code2 Code3 I ) ; Set Have ; Do I = 1 To 3 ; Code = VValueX( 'Code'||Put(I , 8. -L) ) ; Output ; End ; Run ; Proc Print Data = Need ; Run ; Toby Dunn When everything is coming at you all at once, your in the wrong lane. A truly happy person is someone who can smile and enjoy the scenery on a detour. From: wardnine@HOTMAIL.COM Reply-To: wardnine@HOTMAIL.COM To: SAS-L@LISTSERV.UGA.EDU Subject: Sas Question (Re-organizing dataset) Date: Mon, 18 Sep 2006 16:25:27 -0700 Suppose I have a dataset with the variables name, code1, code2, code3, and amount. The dataset is thousands of lines long, but here is a 3-line sample (the order of the 5 variables of data is the same as the order of the variables I list in the first sentence of the post)... Leroy X13 H42 G91 $4,900 Mary D14 X42 X41 $8,100 Lynn C45 X41 H99 $3,000 I need to re-arrange the data so that the name and each code on each row is assigned the amount on that row and for each variable and corresponding amount to appear on a separate line. So, I would need the following dataset: Leroy X13 $4,...

Re: Is it possible to read a sas dataset NOT using sas? #2
I think SPSS and DBMSCopy can read SAS datasets. Also for sure WPS. Gerhard On Tue, 18 Mar 2008 06:43:44 -0700, RolandRB <rolandberry@HOTMAIL.COM> wrote: >Is it possible to read a sas dataset NOT using sas and have >observations and variables etc. rather than having meaningless chunks >of text? ...

Re: Sas Question (Re-organizing dataset)
> -----Original Message----- > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On > Behalf Of wardnine@HOTMAIL.COM > Sent: Monday, September 18, 2006 4:25 PM > To: SAS-L@LISTSERV.UGA.EDU > Subject: [SPAM:] - Sas Question (Re-organizing dataset) - > Email has different SMTP TO: and MIME TO: fields in the email > addresses > > Suppose I have a dataset with the variables name, code1, > code2, code3, and amount. The dataset is thousands of lines > long, but here is a 3-line sample (the order of the 5 > variables of data is the same as the order of the...

RE : read/update sas dataset using SAS/Share and JDBC
Hi All, Does anyone know how to display SAS dataset in java/swing client without pre-defining SAS library in SAS/share startup ? e.g. How to read and dispaly sas dataset in java/swing client, which is available on my desktop (using SAS/Share JDBC driver and without pre-defining libname in sas/share startup script). I have started sas/share server as below : PROC SERVER ID = sassrv01 OAPW = <userID> AUTHENTICATE = optional; RUN ; I installed SAS/Share JDBC drive to connect. FYI, I am able to display sas dataset in java/swing client by pre-defi...

Re: RE : Re: copulas and SAS
Adel, Think Joke! But, more seriously, it did prompt me to look up the origins of the copula as a functional. Joe On 9/27/06, adel F. <adel_tangi@yahoo.fr> wrote: > > Hi, > I do not know how this is related to my orginal question. > > My understanding of copula is, it is a joint distribution with uniform > margins, the problem how to obtain a copula which fits better a data? > > If there is any suggestion from members of SAS list, about examples for > copulae with SAS, I will appreciate that > > Thanks a lot > > Adel > Joe Whitehurst <joewhitehurst@GMAIL.COM> a �crit : > David, > > "The complete attempt to deal with the term is would go to the form > and matter of every thing in existence, at least, if not to the > possible form and matter of all that does not exist, but might. As > far as it could be done, it would give the grand Cyclopaedia, and its > yearly supplement would be the history of the human race for the > time." > > On 9/26/06, David L Cassell proclaimed: > > "... A copula is nothing more than a functional allowing you to link > the multivariate distribution to marginal distributions in an > invariate manner...". > > This caused Augustus De Morgan to leap from his grave and refute David > thusly: > > "The complete attempt to deal with the term "is" would go to the form > and matter of every thing in existence, a...

Re: Newbie Question How to Delete Variable from SAS Dataset
You can use SQL to drop a variable: 9 data a; 10 retain a b c d e f 'asdf'; 11 run; NOTE: The data set WORK.A has 1 observations and 6 variables. NOTE: DATA statement used: real time 0.16 seconds 12 13 proc sql; 14 alter table a 15 drop c; NOTE: Table WORK.A has been modified, with 5 columns. 16 quit; -----Original Message----- From: toby989 [mailto:toby989@HOTPOP.COM] Sent: December 3, 2003 11:27 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Newbie Qu...

Re: Newbie Question How to Delete Variable from SAS Dataset #3
Toby, For better or worse SAS dataset data records have a fixed length and all variables are fixed in length. Such a system does provide advantages as well as disadvantages. Consequently dropping a variable requires restructuring the data. This means that, when coming from a background of languages using variable length structures, one may have to relearn some things. The implied loop of the DATA step is typically a big stumbling block for people who do not understand the SAS language. The step, as opposed to subroutine, oriented nature of SAS programs often causes trouble. On the other...

Re: combine n SAS datasets in to one SAS dataset.
If you use the dictionary tables try Proc SQL - it will run much more quickly than a datastep: %let lib=YourLib; %let mem=file2007; proc sql noprint; select MemName into :MemList separated by " &lib.." from dictionary.tables where LibName=upcase("&lib") and MemType='DATA' and MemName eqt upcase("&mem"); quit; data &lib.File_History; set &lib.&MemList; run; hth Paul Choate DDS Data Extraction (916) 654-2160 -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of stulkem@YAHOO.COM Sent: Thursday, January 17, 2008 12:06 PM To: SAS-L@LISTSERV.UGA.EDU Subject: combine n SAS datasets in to one SAS dataset. Thanks for your help in advance! I have hundreds of SAS datasets that I want to combine into one SAS dataset. For example, I want to set file20070101.sas7bdat - file20071231.sas7bdat (365 total files) into file_history.sas7bdat. How can I write this into a macro or array or whatever will work so I don't have to write each individual file name?? Thanks again! Mark ...

Re: RE : Sas to Excel questions
According to Art, I also checked Online Doc for V9, this is a new feature for V9. Maybe we should to upgrade to V9 just for this :-) http://support.sas.com/onlinedoc/912/getDoc/proc.hlp/a002264701.htm Ya On Wed, 20 Oct 2004 21:30:44 +0200, Datametric <datametric@CLUB- INTERNET.FR> wrote: >The sheet statement is used with proc import. > >You can export to three .xls or use DDE filename and load into yours >specifics sheets. > >St�phane. > >-----Message d'origine----- >De : SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] De la part de Ross, >Michael D >Envoy� : mercredi 20 octobre 2004 16:20 >� : SAS-L@LISTSERV.UGA.EDU >Objet : Re: Sas to Excel questions > > >Hi There, > The "sheet" logic doesn't seem to be working in the following. Any >suggestions? > >Tx. > >data one; >input a $ b $ c $ ; >datalines; >aaaaaaaa bbbbbbbb cccccccc >;run; >data two; >input d $ e $ f $ ; >datalines; >dddddddd eeeeeeee ffffffff >; >run; >data three; >input g $ h $ i $ ; >datalines; >gggggggg hhhhhhhh iiiiiiii >; >run; > >PROC EXPORT DATA= WORK.one > OUTFILE= "C:\excel.xls" > DBMS=EXCEL REPLACE; > SHEET="one"; >RUN; >PROC EXPORT DATA= WORK.two > OUTFILE= "C:\excel.xls" > DBMS=EXCEL REPLACE; > SHEET="sheet2"; >RUN; > >PROC EXPORT ...

Re: Question re TSCSREG in SAS
jonathan.laberge@gmail.com wrote to me personally instead of to SAS-L: > >Hi David, > >My name is Jonathan LaBerge, and I'm a Masters student in Finance >using SAS for my thesis. > >I have a follow-up question of sorts in regards to the U of Georgia >listserv discussion about R-Squared using PROC TSCSREG in SAS >(http://listserv.uga.edu/cgi-bin/wa?A2=ind0704a&L=sas-l&F=&S=&P=28304) > >As I understood, your point to unplugged@gmail.com was that the >conventional OLS R-Squared measure reported by the TSCSREG procedure >does not apply to ...

Re: Newbie Question How to Delete Variable from SAS Dataset #4 625158
John, From looking at the times to execute I would say that in version 8.2 a copy is quietly made. 131 data w ; 132 retain a1-a20 "fdsgklfgh[psgfhshsdfkhsgdlhdf" ; 133 do obs = 1 to 100000 ; output ; end ; 134 run ; NOTE: The data set WORK.W has 100000 observations and 21 variables. NOTE: DATA statement used: real time 14.44 seconds cpu time 2.23 seconds 135 136 data q (drop = a5) ; 137 set w ; 138 run ; NOTE: There were 100000 observations read from the data set WORK.W. NOTE: The data set WORK.Q has 100000 observations and 20 va...

Re: Newbie Question How to Delete Variable from SAS Dataset #4 1541061
Toby, If you want to delete variables this can be done in any step with the dataset DROP option. proc transpose data = w out = t ( drop = _label_ ) ; proc freq data = w ; table x / noprint out = f ( drop = percent ) ; proc sql ; select * from w ( drop = xy: abc etc ) ; If you want to delete data sets then PROC DATASETS is the tool designed for data management. The is DROP statement in SQL that is handy for deleting one table and the there is an old "PROC DELETE data = ... ; run ;" that can delete some kinds of SAS data, but it would be better to use maintained and documented tools. IanWhitlock@westat.com -----Original Message----- From: toby989 [mailto:toby989@HOTPOP.COM] Sent: Wednesday, December 03, 2003 8:23 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Newbie Question How to Delete Variable from SAS Dataset Hi All With the help of the sas onlinedoc available at our university I was able to do things like to transpose a dataset (and used two transpose with a drop statement to delete variables). Is there a proc delete or something like that? I am looking for the least complicated way, preferably in a "proc" rather than in a "data". Thanks for your help. Bye Toby ...

Re: combine n SAS datasets in to one SAS dataset. #3
Here's another option using julian dates: %macro julday(year); %do i=1 %to 365; data _null_; day=datejul(&year*1000+&i); date=put(day,yymmddn8.); call symput("yymmdd",date); put day= date=; run; %put yymmdd=&yymmdd; proc append base=file_history new=file&yymmdd.;run; %end; %mend; %julday(2007); At 11:44 AM 1/18/2008, Howard Schreier <hs AT dc-sug DOT org> wrote: >On Thu, 17 Jan 2008 12:06:01 -0800, stulkem@YAHOO.COM wrote: > > >Thanks for your help in advance! > > > >I have hundreds of SAS datasets that I want to combine into one SAS > >dataset. > > > >For example, I want to set file20070101.sas7bdat - > >file20071231.sas7bdat (365 total files) into > >file_history.sas7bdat. > > > >How can I write this into a macro or array or whatever will work so I > >don't have to write each individual file name?? > > > >Thanks again! > > > >Mark > >You must provide some rule or process which SAS can use to discover the >names of the data sets to be processed. > >Here is how I might deal with the example (one file for each day of a >calendar year): > > data _null_; > call execute('proc datasets library=mylib nolist;'); > call execute('delete file_history;'); > call execute('run;'); > do day = '01jan2007'd to '31dec2007'd; > call execute('ap...

Re: combine n SAS datasets in to one SAS dataset. #2
On Thu, 17 Jan 2008 12:06:01 -0800, stulkem@YAHOO.COM wrote: >Thanks for your help in advance! > >I have hundreds of SAS datasets that I want to combine into one SAS >dataset. > >For example, I want to set file20070101.sas7bdat - >file20071231.sas7bdat (365 total files) into >file_history.sas7bdat. > >How can I write this into a macro or array or whatever will work so I >don't have to write each individual file name?? > >Thanks again! > >Mark You must provide some rule or process which SAS can use to discover the names of the data sets to be processed. Here is how I might deal with the example (one file for each day of a calendar year): data _null_; call execute('proc datasets library=mylib nolist;'); call execute('delete file_history;'); call execute('run;'); do day = '01jan2007'd to '31dec2007'd; call execute('append base=mylib.file_history data=mylib.file' || put(day,yymmddn8.) || ';'); end; call execute('quit;'); run; ...

Re: combine n SAS datasets in to one SAS dataset. #4
<html> <body> <br> Filename allfiles ('d:\conv\2008*.asc');&nbsp; * Filenames can use wildcards;<br><br> infile allfiles;<br><br> <br><br> <br> At 10:53 AM 1/14/2009, b.djaby@gmail.com wrote:<br> <blockquote type=cite class=cite cite="">Hi,<br> I have a similar problem in my SAS macro;<br> I have many ascii files where name are&nbsp; 2008011.asc to 2008123<br> &nbsp;year = 2008, month=01 to 12 and dekad = 1 to 3;<br> To import all my files, I have writed 2 similars&nbsp; macro contain with<br> those code:<br> %LET month=9;<br> %LET dekad=3;<br> <x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>%Do i= 1 %to &amp;month;<br> <x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>%DO j = 1 %to &amp;dekad;<br> %let dataname =&quot;d:\conv\20080&amp;i&amp;j.asc&quot;;<br> infile &amp;dataname;<br> ****<br> and for second<br><br> %LET month=12;<br> %LET dekad=3;<br> <x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>%Do i= 10 %to &amp;month;<br> <x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>%DO j = 1 %to &amp;dekad;...

Re: SAS
Chandu, You should be able to find some info in the SPD Engine section of the on-line documentation. HTH, Ken -----Original Message----- From: chandu.isi@GMAIL.COM To: SAS-L@LISTSERV.UGA.EDU Sent: Mon, 3 Jul 2006 09:03:00 -0700 Subject: SAS - 9; Partition of SAS Datasets. Hi All, Recently I heared from some of my friends...that SAS - 9 supports PARTITION of SAS datasets. I tried for getting syntax and some details, but couldn't able to get. Is anyone has any idea about the partitions of SAS datasets, if so can any one help me out on this? Thanks in advance. Chandu. ________________________________________________________________________ Check out AOL.com today. Breaking news, video search, pictures, email and IM. All on demand. Always Free. ...

Re: Security question re: Sas Intrnet
Depends on your infrastructure. Do you have a security software, which is more comfortable than the windows internals? Do you have a web-portal software with security functions? You might develop a JAVA or PERL entry screen for the reporting which checks the rights of each user. You can also lock the subdirs or HTMLs with passwords, ... Many possibilities, depending of "how secure it has to be" and what are your ressources you have available. E.g. a simple way is, to create entry screens for each group and use the right one depending on a user-id. That is not very secure, because it is possible to go directly to what you want, if you know the link. I think the hardest thing is, to do it with SAS. Ok, with SAS you can route the files to different directories, but after the output they are normal HTMLs and GIFs with no administration possibilities from SAS. On Sun, 21 May 2006 09:54:11 -0400, Jerry L Diebal <jdiebal@GMAIL.COM> wrote: >I have a bunch of reports on the intranet produced mainly using ODS (e.g. >ODS HTML BODY=_WEBOUT) and am running into data that needs to be protected >such that only certain people will have access to it. I'd like to be able to >use Windows Groups to control access. That may be the wrong phrasing but by >that I mean the access for one URL might only be accessible to the >purchasing group, another URL might be Purchasing and Planning, a third only >be a certain manager, etc. Their Windows Login creden...

Re: Deleting SAS Data from a SAS DATASET
One thing you might do is to add an index on the snap_dt to the dataset; = if that's there then you should be able to delete the records in place: proc sql; delete from prod.master_date; where snap_dt =3D "&end_dt"d; quit; run; In both the ways you are trying now you are creating new data sets = rather than deleting records from the current data set; it would seem to = me that a SQL delete statement would be faster than creating new = datasets even if there isn't an index on the date.=20 -Mary ----- Original Message -----=20 From: SUBSCRIBE SAS-L Chandra Gadde=20 To: SAS-L@LISTSERV.UGA.EDU=20 Sent: Friday, August 15, 2008 12:14 PM Subject: Deleting SAS Data from a SAS DATASET Hi All I have several SAS datasets that are very very big. (50GB of size). = Every month, the data is being appended to these datasets. I need to deleted = the data which is greater than 24 months. What is the best method to do = this? Please help me. I tried PROC SQS and DATA STEP. But these two are taking very long = time. Data prod.Master_data; set prod.master_date; if snap_dt =3D "&end_dt"d then delete; run; proc sql; crete table prod.master_date from prod.master_date where snap_dt ne "&end_dt"d; quit; Hi You've got good ideas how to delete the old observations. My modify proposal was wrong. Sorry about that! I still think that changing the data model would be a good idea. Regards Patrick ...

how to add fonts to the sas registry (was RE: Re: sas/graph:
Success! A google search led me to: http://support.sas.com/documentation/onlinedoc/base/91/freetype-hub.pdf Which includes the magic option on FONTREG to use the "all" mode. (And now that I look back on the FONTREG docs, I see it there was well :-P). So here's code that works: * =================================== ; proc fontreg mode = all msglevel = verbose ; truetype 'c:\windows\fonts' ; run ; data phoney ; do n = 1 to 2000 ; x = ranuni(-1) ; if n le 1000 then grp = "one" ; else grp = "two" ; output ; end ; run ; goptions device = EMF ftext = 'Tahoma' ; ods rtf file = "c:\temp\deleteme.rtf" ; proc boxplot data = phoney ; plot x * grp ; run ; ods rtf close ; * =================================== ; Looks like I've got to add that FONTREG call anew every time (running in batch anyway). But that's tolerable... Thanks all! -Roy -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Pardee, Roy Sent: Thursday, February 28, 2008 8:12 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: sas/graph: using truetype fonts w/ODS RTF output on windows Thanks for the response Mary! Huh, strange. So you run that code unaltered & get Tahoma in the graphic in the .rtf file? I just now tried adding this before the 'data phoney ;' line: proc fontreg mode = replace ; truetype 'c:\windows\fonts' ; run ; And I get ...

Re: newbie SAS question
Anuraag, AS far as I know there isn't a free SAS program that you can go to and test your code on, that is unless you know someone with SAS that is willing to let you do that. For a nominal fee of I think around $125.00 USD you can purchase a scaled down version of SAS for your own use. Just go to : http://support.sas.com/rnd/le/ it is the SAS learning edition. HTH Toby Dunn -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Anuraag Mohan Sent: Monday, October 18, 2004 9:09 AM To: SAS-L@LISTSERV.UGA.EDU Subject: newbie SAS question Hi, I have a SAS interview coming up next week and I dont have access to SAS to hone my skills. It has been a year since I coded using SAS> I anyone aware of a free online resource which will let me test my basic SAS codes. I am looking for something similar to what w3schools has for SQL. Just a small database with a few entries where one practises merging tables etc.. thanks ...

Web resources about - Re: newbie question re:reading in and recoding SAS dataset - comp.soft-sys.sas

Resources last updated: 3/18/2016 5:22:11 PM