Clearing work.GSEG window when working with GPLOT interactive

sas

    Next

  • 1. option estprob in Proc logistic
    Hi everyone, I'm trying to get fitted predicted probability curves using the option "graphics estprob" in the proc logistic. It is an experimental option (example 42.7 in the proc logistic of the official SAS documentation online). Did anyone ever used it, becausde it does not work at all and it appeared in red in the editor. Thanks for your help Julien
  • 2. Output a filelist to TXT file on Mainframe
    I am working on a program to migrate several SAS and TXT files from a given Mainframe account to a Windows server. I have much of the program working and I have been working with a text file of Mainframe files created with TSO 3.4 dataset list that someone did for me. I would like to make the program more dynamic and send a list of all Mainframe datasets (files) to a text file that I can read in and create macro calls from. I have tried a few aproaches that I found on here using PROC IDCAMS but each time it seams to keep running and never ending. The directory (Mainframe account) that I am trying to get a file list for testing purposes only has 13 files so it should be very quick. I did get a list using the code below but it sends the list to the SAS LOG and I have not been able to redirect it with PROC PRINTTO. Command I have used: X 'LISTCAT LVL(ZQR0)'; Is there a way to redirect or "pipe" the output of this to a file like ZQR0.FILELIST.TXT? I am working via SAS CONNECT so avoiding JCL would be my preferable solution. Thanks, Jim
  • 3. Fwd: Output a filelist to TXT file on Mainframe
    ---------- Forwarded message ---------- From: Data _null_; < XXXX@XXXXX.COM > Date: Jul 24, 2009 8:11 AM Subject: Re: Output a filelist to TXT file on Mainframe To: XXXX@XXXXX.COM On 7/24/09, Nat Wooding < XXXX@XXXXX.COM > wrote: > Proc Source indd = in Outdd = Out nodata; > run; > > The file Out would have the list of the member names and these will appear > as > > > ./ ADD NAME=member name You can also write tailored control decks using the FIRST, LAST, BEFORE and AFTER statement. I might be nice to have a similar PROC for other OSes that process file directory tree style aggregate storage locations. But maybe that is a different subject.
  • 4. Import Numbers as Times
    Hi I'm using SAS 9.1 and importing a large .txt file using infile and imput statements. The time field in the .txt file is stored as a number without colons based on a 24 hour clock i.e. 1250, 2342, 1030. How can I import these so SAS recognizes them as times and then how to format for export to MS-Access? Note that some time fields will be blank or invalid i.e having data like "9999" in them. Thanks.

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.

Jake

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

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

Jerry

Thank you very much!

Jake






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
 http://www.**--****.com/ 



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?
Thanks!
gim

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?

4.how 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
doyle

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,.);
  %end;
  %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';
        quit;
        %*** if no USER libref defined then it must be WORK;
        %if "&&&lib"="" %then %let &lib=WORK;
     %end;
     %let &mem=∈
  %end;
  %*** upcase for use with dictionary tables; 
  %let &lib=%upcase(&&&lib);
  %let &mem=%upcase(&&&mem);
%put &lib is &&&lib  &mem is &&&mem;
%mend;

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

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

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

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,
Tammie

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 94 guest