home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!paladin.american.edu!auvm!GTE.COM!GLG2
- X-Mailer: ELM [version 2.3 PL10]
- Message-ID: <9209011949.AA09643@bunny.gte.com>
- Newsgroups: bit.listserv.sas-l
- Date: Tue, 1 Sep 1992 15:49:58 EDT
- Reply-To: Gail Gill <glg2@GTE.COM>
- Sender: "SAS(r) Discussion" <SAS-L@UGA.BITNET>
- From: Gail Gill <glg2@GTE.COM>
- Subject: Help with a more efficient way to program
- Comments: To: sas-l%marist.bitnet@cunyvm.cuny.edu
- Lines: 27
-
- Hello fellow SAS-lers,
-
- I am looking for a more efficient way to code this, perhaps with proc
- sql or summary or tablulate? I need to do this for nine clasgrps and
- 4 pubdtes each. I would appreciate any suggestions.
-
- Thanks in advance.
-
- Gail Gill
-
- Code follows:
-
- if clasgrp=1 then do;
- if pubdte=198804 then do;
- if listing=1 and option=0 then pricfam0=billrate;
- else if listing=1 and option=1 then pricfam0=billrate-adonrev;
- else pricfam0=78.89;
- if space=1 and option=0 then pricfam1=billrate;
- else if space=1 and option=1 then pricfam1=billrate-adonrev;
- else pricfam1=976.71;
- if display=1 and option=0 then pricfam2=billrate;
- else if display=1 and option=1 then pricfam2=billrate-adonrev;
- else pricfam2=7604.32;
- if tradmk=1 and option=0 then pricfam3=billrate;
- else if tradmk=1 and option=1 then pricfam3=billrate-adonrev;
- else pricfam3=680.10;
- end;
-