Date: Mon, 14 Jul 2008 08:45:07 -0500
Reply-To: "data _null_," <datanull@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "data _null_," <datanull@GMAIL.COM>
Subject: Re: Simple programming question
In-Reply-To: <4e829fd30807140637v31180cc7rbd3623488ca90b3a@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
It is actually F1. INFORMAT. The : is a modifier, so that I can use
an informat with list input. I could have written :1. and $3. could
have been written :$F3.
On 7/14/08, Anindya Mozumdar <anindya.lugbang@gmail.com> wrote:
> What is the significance of :f1 in the code? Thanks....
>
> On Mon, Jul 14, 2008 at 6:41 PM, data _null_, <datanull@gmail.com> wrote:
> > UPDATE!! The forgotten sibling of SET and MERGE.
> >
> > data have;
> > infile cards missover;
> > input Ptno (a b c d e f g h) (:f1. :$3.);
> > cards;
> > 1 1 Yes
> > 1 . . 1 Yes
> > 1 . . . . 0 No
> > 1 . . . . . . 1 Yes
> > ;;;;
> > run;
> > data need;
> > update have(obs=0) have;
> > by ptno;
> > run;
> > proc print;
> > run;
>
|