Newsgroups: bit.listserv.sas-l
Date:         Thu, 20 Aug 1992 17:46:48 PDT
Reply-To:     "P. Oldenkamp 5-4481" <oldenkmp@ESPRESSO.BOEING.COM>
From:         "P. Oldenkamp 5-4481" <oldenkmp@ESPRESSO.BOEING.COM>
Subject:      Re: Help needed: positions of windows and looping
Comments: To: SAS-L@uga.cc.uga.edu, ggu@CHPC.ORG

----------------------------------------------------------------------
CONTENT:  Reply
REL/PLTF: 6.07.02/SunOS
E-ADDR:   oldenkmp@ESPRESSO.boeing.com
NAME:     Paul OldenKamp
PHONE:    206-865-4481
----------------------------------------------------------------------
Gary G. Gu posted:

> 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.
>

I thought I had a quick and easy answer for Gary this morning but it turns
out that the answer I posted and that Bob Snyder had gotten from tech
support doesn't work for him.  I would like to know myself if there is something
different that one has to do on a DEC that I have don't have to do under
SunOS to save window information and it seems like someone who actually
does this on a DEC needs to respond.

> 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.
>
The way to control the execution of PROC's is with the SAS Macro Language.
Unfortunatly, it is a whole computer language of its own that is only
somewhat related to the SAS Data Step syntex and it is quite an effort
to learn the Macro Language.

> 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.
>
The only way to do this before the new version 6.07 came out was again
with the Macro Language.  Now one can use the #byval for some types of
this substitution.  RTFM in Tech. Rep. P-222, "Changes and Enhancements to
Base SAS Software", pp 44-45.

> 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.
>
I'm unfamiliar with 'FAQ' but I think you are asking about the SAS-L Archives.
Perhaps someone has an on-line copy of the instructions they could send you
or tell you how to get the information on accessing it.  You will find the
archives very useful but don't worry about posting questions that have appeared
before because the answers keep changing ;-) as time goes on.

> Thank you and your help will be greatly appreciated.
>

----------------------------------------------------------------------
	       //  Paul OldenKamp
	      //   BCS Research and Technology          .
	     //    P. O. Box 24346, MS 7L-21            |\
	    //     Seattle, WA   98124-0346             | \____oo_
	   //==========================================((__|  /___>
	  //       ___ ___ ___ ___     __                  | //
	 //       /__//  //__  /  /\ //  _                 |//
	//       /__//__//__ _/_ /  //__/                  ''
       //
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Newsgroups: bit.listserv.sas-l