From: Nickname unavailable on
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
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
As Tom said: The main purpose is to convert character to numeric,