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 (January 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 7 Jan 2005 12:37:44 -0500
Reply-To:     "Nick ." <ni14@MAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Nick ." <ni14@MAIL.COM>
Subject:      MACRO help
Content-Type: text/plain; charset="iso-8859-1"

Hello, I have eleven .TXT files residing under MyLib. Their names are ixidat01 through ixidat11. What I would like to do is place the following code, which works, into a macro so that I won't manually have to read in each of those files. For example, in the code below, I am reading the ixidat01.txt file. Then, I'll have to change that name to ixidat02 and so on. If you have a better code, then you don't have to use my code below. Can anyone please help? Thanks. NICK.

libname MyLib '/files0/nick/MODELING/FREECHKNGMODELS/SEP_DEC04_MODEL/DATA/IXI_DATA'; filename ixidat01 '/files0/nick/MODELING/FREECHKNGMODELS/SEP_DEC04_MODEL/DATA/IXI_DATA/ixidat01.txt' lrecl=489;

data MyLib.ixidat01; infile ixidat01 missover; input @001 zip $5. @006 zipfour $4. /* zipfour */ @010 inv24class $2. /* investyles 24-class code */ @012 inv10class $2. /* investyles 10-class code */ @014 rectype $1.; /* record type */

run; -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm


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