Date: Fri, 16 Jan 1998 16:35:06 -0500
Reply-To: mrose@ctfinance.com
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Michael Rose <mrose@CTFINANCE.COM>
Organization: UUNET Canada News Transport
Subject: Procs in a loop
Content-Type: text/plain; charset=us-ascii
I was wondering how to get a PROC inside a loop or a data step. I need
to call a series of SAS PROCS -- SQL and IML and pass data to them
based on the data in the current record of a data step. For example,
DATA X;
KeyIWant = Key;
PROC SQL;
CREATE TABLE JUNK AS
SELECT * FROM STUFF WHERE KEY = KeyIWant;
Etc.
Any ideas.
|