Date: Wed, 19 Oct 2005 08:10:24 -0400
Reply-To: "Srna, Carol (C.)" <csrna@FORD.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Srna, Carol (C.)" <csrna@FORD.COM>
Subject: Re: SAS Error 391
Content-Type: text/plain; charset="us-ascii"
My error. Thank You.
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
RolandRB
Sent: Wednesday, October 19, 2005 8:05 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: SAS Error 391
"Srna, Carol (C.)" wrote:
> Hi All.
> I received the following error message for this LENGTH statement:
>
> ----+----1----+----2----+----3----+----4----+----5----+----
> 2 INFILE MCDS MISSOVER; =20
> 3 LENGTH MIGFLAG $CHAR1.; =20
> + _______ =20
> + _______ =20
> + _______ =20
> 391 200 =20
> + 391 200 =20
> + 391 200 =20
> ERROR 391-185: Expecting a variable length specification.=20
It should be:
LENGTH MIGFLAG $ 1;
You should not use a "length" statement to assign a format. The "format"
statement is used for that purpose.
|