Date: Tue, 10 Oct 2006 06:06:07 -0400
Reply-To: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Subject: Re: To find the alignment of semicolon for checking SAS coding
standards
Jenny,
I don't understand, what your problem is. You have (your own) standards for
SAS code? Now you want to check your sources, if they fit to your standards?
What are that standards? What about the results of that test? Do you
rearrange the statements, or simply protocol?
Please tell more.
Regards,
Gerhard
On Tue, 10 Oct 2006 02:23:24 -0700, Jenny <thenmozhi_raji@YAHOO.COM> wrote:
>Hi all,
>
>Inorder to verify the SAS coding , how to find and compare the position
>of semicolon and the corresponding SAS statements
>
>For ex:
>ie how to check whether the position of semicolon and is properly
>aligned with respect to DATA statement.
>
>DATA
> DATASET1
> ;
> MERGE
> DATASET2
> DATASET3
> ;
> BY
> VAR1
> ;
> IF VAR1 EQ 1 THEN DO
> VAR2 = VAR2 + 1;
> FLAG = 1;
> END;
> IF VAR1 NE 1 THEN
> PUT 'A = ' VAR1
> ;
> ELSE
> PUT 'A = ' VAR2
> ;
>RUN;
|