LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 1999, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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?

Thank you

DATA TEST; INFILE FILEONE; /* ACTUAL DATA FILE READ IN FROM JCL*/ INPUT @1 V1 $2. @5 V2 5. @10 V3 10.; /* ACTUALLY QUITE A MORE VARIABLES THEN THESE */ RUN;


Back to: Top of message | Previous page | Main SAS-L page