From: Nickname unavailable on 11 Mar 2010 10:48 I'd like to know what is the purpose of using informat. I tried read in foxtv $ and rating and trim the input data to the smaller width ; using informat foxtv $5. rating 1; the listing of the proc print still shows $7 for foxtv and 3. for rating as the actual data was. I used the put funation then worked fine to trim the input data. Thanks!
From: Tom Abernathy on 11 Mar 2010 18:29 On Mar 11, 10:48 am, Nickname unavailable <adac1...(a)gmail.com> wrote: > I'd like to know what is the purpose of using informat. > I tried read in foxtv $ and rating and trim the input data to the > smaller width ; > using informat foxtv $5. rating 1; > the listing of the proc print still shows $7 for foxtv and 3. for > rating as the actual data was. > I used the put funation then worked fine to trim the input data. > Thanks! The main purpose is to convert the data. For example if your input data has M and F and you want to store it into a numeric variable with values 0 and 1. To trim a variable you can use the SUBSTR function.
From: Patrick on 13 Mar 2010 08:05 As Tom said: The main purpose is to convert character to numeric,
|
Pages: 1 Prev: How to find out the desired string Next: Soundex singed different values for same names? |