|Date: ||Wed, 8 Dec 1999 00:56:22 GMT|
|Reply-To: ||Colin <husker1@SPRINTMAIL.COM>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||Colin <husker1@SPRINTMAIL.COM>|
|Organization: ||EarthLink Network, Inc.|
|Subject: ||Macro question|
|Content-Type: ||text/plain; charset=us-ascii|
I currently use sas in batch on mvs in a tso environment. Often i read
in the data needed in JCL. The file lengths are the same and fields are
the same. What i would like to do is set up in The SAS part of my
program to use a Macro variable instead of having to either copy and
paste from different programs or retype all my input variables. I have
no experience with macros, but believe this to be not too difficult.
How would i read in the DSN containing the variables in the below code?
INFILE FILEONE; /* ACTUAL DATA FILE READ IN FROM JCL*/
@1 V1 $2.
@5 V2 5.
@10 V3 10.; /* ACTUALLY QUITE A MORE VARIABLES THEN THESE */