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 (September 2003, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 30 Sep 2003 16:52:54 -0700
Reply-To:     Harmeet <hkalra@WEBGABLE.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Harmeet <hkalra@WEBGABLE.COM>
Organization: http://groups.google.com
Subject:      Re: Re-Reading same infiles in  a Datastep in SAS
Content-Type: text/plain; charset=ISO-8859-1

I was able to figure it out: I had to reinitialize the filevar between the opens of a template. I have a dummy link in a link ......

L_STDCUST: ENDSCUST = 0; RETAIN LN 0;

LN = 0;

PUT 'IN LINK BEFORE LOOP ' LN= REQREFN= ENDSCUST=; LINK _DUMMY_; TEMPTYPE = 'MLT.STDCUST.TEMPLATE'; DO WHILE(ENDSCUST=0); INFILE TEMPLATE FILEVAR = TEMPTYPE END=ENDSCUST; LN = LN+1;

===

===

RETURN;

_DUMMY_:

TEMPTYPE = MLT.PLACE.HOLDER';

INFILE TEMPLATE FILEVAR = TEMPTYPE END=ENDSCUST; FILE LOG; INPUT; PUT " I AM IN DUMMY"; RETURN;

It worked, thank you all for your support. Now I have to start coding properly.

Regards .......Harmeet


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