Date: Tue, 9 Nov 2004 08:27:06 -0500
Reply-To: "Fehd, Ronald J." <RJF2@CDC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Fehd, Ronald J." <RJF2@CDC.GOV>
Subject: Re: PROC inside PROC
Content-Type: text/plain; charset="us-ascii"
> From: Arvind Chande
> My requirement is to use some of the standard PROCs like
> SORT, FREQ etc. inside PROC GA for user defined objective
> fuction. Have anyone tried out such things?
Nice Idea!
YeahBut just what are you thinking you are going to pass as parameters
from proc GA to any other procedure?
as previously shown, a proc (SQL) or data step
can generate code to be run in the next step
procedures can produce output data steps
which have values to be used by other processing.
but SAS does one thing well, at a time.
like most of the rest of us.
So your program may
read like you
wrote it
but the arithmetic is done sequentially.
take a look at the output data set from proc GA.
These variables and their values are the parameters
you will use as input to other procedures
Ron Fehd the macro maven CDC Atlanta GA USA RJF2 at cdc dot gov
By using your intelligence
you can sometimes make your problems twice as complicated.
-- Ashleigh Brilliant