home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Subject: (no subject given)
- Path: sparky!uunet!uvaarpa!darwin.sura.net!paladin.american.edu!auvm!TAMVM1.BITNET!PADAKI
- Message-ID: <SAS-L%93012614592704@UGA.CC.UGA.EDU>
- Newsgroups: bit.listserv.sas-l
- Date: Tue, 26 Jan 1993 13:06:36 CST
- Reply-To: "padmanabh M. Padaki" <PADAKI@TAMVM1.BITNET>
- Sender: "SAS(r) Discussion" <SAS-L@UGA.BITNET>
- From: "padmanabh M. Padaki" <PADAKI@TAMVM1.BITNET>
- Lines: 31
-
- I have a question about a set statement ( i think);
-
- Here is my program.
-
- data a;
- input a b c d e f g h;
- cards;
- 1 516 12 31 968 80 8 67
- ;
-
- data b;
- input a b c d e f g h ;
- cards;
- 0 516 0 0 0 0 7 89
-
-
- the output that I am looking for should look like the following.
-
- 1 516 12 31 968 80 8 67
- 1 516 12 31 968 80 7 89
-
- In other words for the same id (516) I want the the "zeros" for
- varaiables "a c d e f " to be replaced by the values from the previous
- observation.
-
- Thanks in advance
-
-
- Padmanabh M. Padaki SAS 6.04
- User Services
- Texas A&M University
-