Date: Wed, 16 Apr 2008 13:58:24 -0400
Reply-To: "Diskin, Dennis" <Dennis.Diskin@PHARMA.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Diskin, Dennis" <Dennis.Diskin@PHARMA.COM>
Subject: Re: Problem
In-Reply-To: A<9959d788-e89e-4afa-8dfc-0f55bb3620e0@1g2000prg.googlegroups.com>
Content-Type: text/plain; charset="us-ascii"
Not sure what else is wrong since you don't show all the code, but the
statements like:
IF PP1 = 'Y' THEN DO;
@101 DATA3 $CHAR10.
@;
END;
should produce error messages and caused the program to stop.
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
salim
Sent: Wednesday, April 16, 2008 1:38 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Problem
Hi Guys , I was facing a peculiar problem while writing the sas
datafile.
consider the following statements
@1 data1 $char10.
@12 data2 $char19.
@70 'C'
@;
IF PP1 = 'Y' THEN DO;
@101 DATA3 $CHAR10.
@;
END;
IF PP2 = 'Y' THEN DO;
@153 DATA3 $CHAR10.
@;
END;
IF PP3 = 'Y' THEN DO;
@201 DATA3 $CHAR10.
;
END;
NOW ONLY THOSE RECORDS WERE WRITTEN FROM THE INCOMING DATASET WHICH HAD
ALL THE VARIABLE PP1,PP2,PP3 CONDITION SATISFIED.
REST WERE JUST NOT WRITTEN.
WHAT CAN BE A POSSIBLE REASON FOR THIS ????