home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / bit / listserv / sasl / 3830 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  2.8 KB

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