home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / bit / listserv / sasl / 5764 < prev    next >
Encoding:
Text File  |  1993-01-27  |  1.0 KB  |  43 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Subject: (no subject given)
  3. Path: sparky!uunet!uvaarpa!darwin.sura.net!paladin.american.edu!auvm!TAMVM1.BITNET!PADAKI
  4. Message-ID: <SAS-L%93012614592704@UGA.CC.UGA.EDU>
  5. Newsgroups: bit.listserv.sas-l
  6. Date:         Tue, 26 Jan 1993 13:06:36 CST
  7. Reply-To:     "padmanabh M. Padaki" <PADAKI@TAMVM1.BITNET>
  8. Sender:       "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  9. From:         "padmanabh M. Padaki" <PADAKI@TAMVM1.BITNET>
  10. Lines: 31
  11.  
  12. I have a question about a set statement ( i think);
  13.  
  14.    Here is my program.
  15.  
  16. data a;
  17.      input a b c d e f g h;
  18.      cards;
  19. 1 516  12 31 968 80 8 67
  20. ;
  21.  
  22. data b;
  23.      input a b c d e f g h ;
  24.      cards;
  25. 0  516 0 0 0 0 7 89
  26.  
  27.  
  28. the output that I am looking for should look like the following.
  29.  
  30.  1 516 12 31 968 80  8 67
  31.  1 516 12 31 968 80  7 89
  32.  
  33. In other words for the same id (516) I want the the "zeros" for
  34.    varaiables "a c d e f " to be replaced by the values from the previous
  35.    observation.
  36.  
  37. Thanks in advance
  38.  
  39.  
  40. Padmanabh M. Padaki                 SAS 6.04
  41. User Services
  42. Texas A&M University
  43.