Date: Thu, 23 May 2002 15:50:45 -0400
Reply-To: "Goldman, Brad (AT-Atlanta)" <Brad.Goldman@AUTOTRADER.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Goldman, Brad (AT-Atlanta)" <Brad.Goldman@AUTOTRADER.COM>
Subject: Puts, Part II
Content-Type: text/plain; charset="iso-8859-1"
My original goal was to have SAS automatically update an HTML file, adding a
line with this months info to a drop down menu. I previously had a problem
with puts and carriage-returns. Thank you for all the help, but in the end
I had to resort to the kludge of:
line=compress(line,'0D'x); to strip out the offending characters.
My next problem with this program is much easier, I feel sure that someone
will know the answer quickly. I have the code working fine for "normal"
reports. But then I came to MDDBs, which have very long URLs. For example,
here is one report link:
(Imagine the above is one long line, no breaks.)
Trimming some bits, here is the relevant code.
infile "&in" length=ln;
input line $varying1024. ln;
put line $varying1024. ln;
My code puts the long URL above out as:
(again, this is all one long line, just not as long as it should be!)
I also get this in the log:
NOTE: 420 records were read from the infile
The minimum record length was 0.
The maximum record length was 256.
One or more lines were truncated.
So it seems to me that SAS is putting out only 256 characters, not the whole
shebang, despite my $varying1024. specification. Can anyone help me to get
the entire string?