Date: Fri, 23 Jul 2004 09:09:50 -0500
Reply-To: Mai To <Mai.To@UTH.TMC.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Mai To <Mai.To@UTH.TMC.EDU>
Subject: add in a value
Content-Type: text/plain; charset="us-ascii"
I have a dataset with many fields. I need to add in a field "YR" with a
value "04" at the end of each record to identify the year. This is my
INPUT @ 1 DATA $140.
@ 145 YR $2.
IF YR=' ' THEN YR='04';
FILE OUT ;
But it doesn't work. Any help is very much appreciated.