home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!uvaarpa!darwin.sura.net!wupost!sdd.hp.com!elroy.jpl.nasa.gov!lll-winken!miguel.llnl.gov!macq
- From: macq@miguel.llnl.gov (Don MacQueen)
- Newsgroups: bit.listserv.sas-l
- Subject: Re: Help needed: positions of windows and looping
- Message-ID: <134021@lll-winken.LLNL.GOV>
- Date: 20 Aug 92 23:46:35 GMT
- References: <22823.9208201851@chpc.chpc.org>
- Sender: usenet@lll-winken.LLNL.GOV
- Organization: Lawrence Livermore National Laboratory
- Lines: 54
- Nntp-Posting-Host: miguel.llnl.gov
-
- In article <22823.9208201851@chpc.chpc.org>, ggu@CHPC.ORG (Gary G. Gu) writes:
- |> Hello,
- |>
- |> My friend thought I'm a programmer so I ought to be able to fix her
- |> SAS problems. I failed and I'm turning to the net for help.
- |>
- |> 1. How do I control the positions of the windows under X. I'm using a
- |> DEC 3100 running Motif window manager. I've tried using SAS global
- |> command `wsave all', but when I start SAS from scratch, the windows
- |> still showed up in random places (well, places Mwm generated). Why can't
- |> I use the .Xdefault resource file to inform SAS my preference? What
- |> are the names of the resources? SAS technical people, please help.
- |>
- A long time ago I succeeded in doing what I believe your friend wants.
- Here is what I recall.
-
- Since she's running under X, she should be seeing windows with menus that
- have titles such as 'File' 'Edit' 'View', etc. Under the View menu is an
- item named 'Save Attributes'. After using the mouse to resize and relocate
- a SAS window, select and execute the Save Attributes item. Next time she
- starts SAS, the window should come up where it was when Save Attributes was
- selected.
-
- |> 2. My limited experience using SAS in helping my friend tells me that
- |> IF-THEN and GOTO statements work only inside the DATA step. How do I
- |> control the execution of procedures? For example, how do I ask SAS
- |> to execute:
- |> proc print;
- |> a number of times? I'd like to say:
- |> do i=1 to 10;
- |> proc print;
- |> run;
- |> end;
- |> I'm spoiled with a general programming langauge like C or Lisp where
- |> the programmer has a lot of control. SAS seems to offer very limited
- |> control structures. I hope I'm wrong.
- |>
- |> 3. How do I send a variable to a title? I need to have to title to
- |> say "this is histogram 1" and next time "this is histogram 2". It
- |> seems there is no way to make title take a variable.
- |>
- |> 4. Is there a FAQ for this group that I can get on the net? I am afraid
- |> that since I'm new to SAS, I must be asking questions people have asked
- |> years ago. I'd save you a lot of time if I can consult the FAQ file first.
- |>
- |> Thank you and your help will be greatly appreciated.
-
- --
- ---------------------------------------------------
- Don MacQueen macq@miguel.llnl.gov
- Lawrence Livermore Nat. Lab.
- 7000 East Ave., L-307 (510) 423-1062
- Livermore, CA 94550
- ---------------------------------------------------
-