home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / bit / listserv / sasl / 5414 < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.3 KB  |  35 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!NKI.BITNET!VITRAI
  3. X-Delivery-Notice:  SMTP MAIL FROM does not correspond to sender.
  4. Message-ID: <SAS-L%92121710560456@UGA.CC.UGA.EDU>
  5. Newsgroups: bit.listserv.sas-l
  6. Date:         Thu, 17 Dec 1992 10:43:03 EST
  7. Reply-To:     Jozsef Vitrai <VITRAI@NKI.BITNET>
  8. Sender:       "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  9. From:         Jozsef Vitrai <VITRAI@NKI.BITNET>
  10. Subject:      input(put(.. question
  11. Lines: 22
  12.  
  13. Hi,
  14. I'd like to understand, can would anybody explain me:
  15. WHY doesn't work the INPUT function without the PUT?
  16. -------------------------  test program's log  -----------------------------
  17. 57   data test; set w;
  18.  
  19. 58   datew_p =input(put(dob,$6.),yymmdd.);
  20. WARNING: Variable DOB has already been defined as numeric.
  21. 59   datewo_p=input(dob,yymmdd.);
  22. 60   format datew_p datewo_p mmddyy.;
  23. 61   put dob= datew_p= datewo_p =;
  24. 62   run;
  25.  
  26. NOTE: Numeric values have been converted to character
  27.       values at the places given by: (Line):(Column).
  28.       59:16
  29. DOB=220111 DATEW_P=01/11/22 DATEWO_P=.
  30. DOB=220111 DATEW_P=01/11/22 DATEWO_P=.
  31. DOB=220111 DATEW_P=01/11/22 DATEWO_P=.
  32. DOB=220111 DATEW_P=01/11/22 DATEWO_P=.
  33. DOB=220111 DATEW_P=01/11/22 DATEWO_P=.
  34. NOTE: The data set WORK.TEST has 5 observations and 25 variables.
  35.