Clearing work.GSEG window when working with GPLOT interactive



  • 1. M2008
    Does anyone know if papers are available for this conference (Data Mining), along the lines of those published by various SAS User Groups? Thanks!
  • 2. Matched-Group Design
    Hi all, I was wondering if someone could provide me with a snippet of code for analyzing matched group designs that contain a covariate. I have a study in which I have 24 control cases that I statistically matched to 24 treatment cases based on a baseline measure of systolic blood pressure (SBP). I also have a 1-year follow-up SBP measure for each of the 48 control and treatment cases. I know how to conduct a repeated measures ANCOVA in which I model the Post_SBP based upon whether the patient is in the treatment versus control group and their Pre_SBP using Proc GLM. proc glm data=&DS ; format group group. ; class group ; model Post_SBP = group Pre_SBP / effectsize alpha=0.05; lsmeans group/stderr pdiff cov ; run; quit; However, I do not know how to adjust this code for a matched group design. I am also not sure how I should structure the input dataset. For instance, do I have a dataset with 48 cases (24 controls stacked on top of 24 treatments) and 5 variables (PatientID, MatchID, group, Pre_SBP, Post_SBP) or alternatively a dataset with 24 cases and 5 variables (PatientID, Pre_Control_SBP, Post_Control_SBP, Pre_Treatment_SBP, Post_Treatment_SBP). I would be grateful for any guidance someone can provide me with this analysis. Best regards, Cristian
  • 3. manipulating Proc SurveyFreq ODS table output
    I need to take the table output (ODS label is CrossTabs) and re-arrange it so it looks similar to the Proc Freq crosstabs, with each box having the N, overall percent, Row Percent, Column Percent. I'd also like to add in the confidence limits for the row and column percent. Has anyone done this? I'm thinking that the use of pointer controls may help me place things in the columns I need, though of course a Proc Transpose approach might work too. The data source will be Ohio's BRFSS data. I'm working towards a macro which will let me get the crosstabs table, manipulate it to cleanup significant digits, and then put it on the page in the desired layout. Then I'll be running the h*!! out of it to create all my tables. You advice and suggestions are appreciated. Thanks. BJ Mattson Epidemiology Investigator III Ohio Department of Health Center for Public Health Statistics and Informatics.
  • 4. Specify a BOLD system font?
    Hi all, If I want to specify a BOLD system font for SAS/Graph text presentation, how do I do that? The specific issue is as follows: I am presenting a legend which has two columns of information on each plotted value. I want the columns to line up, so I am using a monospace font (e.g., Courier, Lucida Sans Typewriter). The rest of my graphic is all bold, and I would like to use a bold monospace font on the values. I tried to use SAS Monospace Bold, but got a note that that font could not be used (why?) and was substituted for. So how do I specify something like Courier BOLD? This is my present legend statement: legend1 mode=protect position=(bottom left inside) frame label=(font=swissb h=1.15 "BMI") across=1 shape=line(7) pct value=(font="courier" h=1.15); By the way, I am writing the graphics out to JPEG files if that matters for anything. Thanks, Dale --------------------------------------- Dale McLerran Fred Hutchinson Cancer Research Center mailto: XXXX@XXXXX.COM Ph: (206) 667-2926 Fax: (206) 667-5977 ---------------------------------------

Clearing work.GSEG window when working with GPLOT interactive

Postby johbee » Thu, 13 Dec 2007 23:55:27 GMT

Dear SAS-L,

Does anyone know how to clear the work.GSEG window of plots from consecutive
plots (work.gseg.glpot[1..n]) when working with
SAS and running glpot interactively.

Thanks, any help is appreciated.


Re: Clearing work.GSEG window when working with GPLOT interactive

Postby johbee » Fri, 14 Dec 2007 05:34:52 GMT


Thank you very much!


Re: Clearing work.GSEG window when working with GPLOT interactive

Postby Richard A. DeVenezia » Sat, 15 Dec 2007 00:46:33 GMT

You can use
    goptions goutmode=replace;
before your first graphics procedure.

If there are more graphics being generated, be sure to use
    goptions goutmode=append;
after the first proc step.

Richard A. DeVenezia

Similar Threads:

1.The clear command does not work for graphs window

Hi there,
I need to clear all the figures in the graph window that I created. But the
clear command which ususally works well for the output window failed to do
so. Anyone has the idea of that?

2.Mainframe Interactive SAS expanded WORK library

3.proc printto print="filename" not working in interactive sas

I use sas in batch exclusively but I have to make sure interactive
users can use my macros. One of these macros redirects print output
using "proc printto print='filename'". This works in batch but when I
run it interactively, instead of sending the print output to the file
I specified, it still uses the output window. How do I get this to
work correctly in interactive sas? to clear work library

i am using sas for win 8.2. is there some line of code i can insert into 
my program that will clear the contents of the work library without 
having to quit the sas program? this would be the code equivalent to 
going into the explorer window, opening up the work folder and right 
clicking on each temp data set and choosing delete.

thank you

5.libref for "work" data sets (one level name): WORK vs USER vs User= option

I thought there was an easy way to determine the libref for "work"
data sets (i.e. those that can be accessed via a one level name), but
I could not find anything on SAS-L or in the on-line doc. Of course,
searching for WORK USER LIBREF can provide a number of non-related
hits (see additonal slightly off topic question at bottom).
I ended up writing the code included below to determine the libname
and memname for one level data set names.
(I need the two level name to extract info from the dictionary tables)

Is there an easier way to figure out the two level name?
%*** get lib & mem;
%macro libmem(in=,lib=_lib,mem=_mem);
  %if %scan(&in,2,.)>' ' %then %do;
     %*** two level names are easy;
     %let &lib=%scan(&in,1,.);
     %let &mem=%scan(&in,2,.);
  %else %do;
     %*** one level names are more challenging;
     %*** if USER option is set, then use it;
     %let &lib=%sysfunc(getoption(USER));
     %if "&&&lib"="" %then %do;
        %*** if no USER option, check USER libref, if there use it;
        proc sql noprint;
         select distinct libname into :&lib from DICTIONARY.MEMBERS
          where libname='USER';
        %*** if no USER libref defined then it must be WORK;
        %if "&&&lib"="" %then %let &lib=WORK;
     %let &mem=∈
  %*** upcase for use with dictionary tables; 
  %let &lib=%upcase(&&&lib);
  %let &mem=%upcase(&&&mem);
%put &lib is &&&lib  &mem is &&&mem;

data prdsale; set sashelp.prdsale(obs=1); run;

libname USER 'c:\DeleteThisFolder';
data prdsalU; set sashelp.prdsale(obs=1); run;

libname altUser 'c:\DeleteThisOneToo';
options user=altUser;
data prdsalO; set sashelp.prdsale(obs=1); run;

While looking at the on-line doc I found these:

Files in UNIX System Services can also be specified without a libref.
The following example specifies an HFS file using a relative path:
data 'saswork/two'; x=2; run;

I do not currently have access to a UNIX or OS/390 box, but was
wondering, do data sets accessed in this way show up in the dictionary
tables? And, if so, what do they look like? Just curious. No real need
to know.

Thanks for any assistance or advice,

6. customizing SAS session WORK.REGSTRY WORK.PROFILE

7. defaulte work library is not "work"

8. OT: Working the program or letting it work you

Return to sas


Who is online

Users browsing this forum: No registered users and 37 guest