Date: Tue, 8 Jul 1997 12:54:29 PDT
Reply-To: TWB2%Rates%FAR@BANGATE.PGE.COM
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Tim Berryhill 3rd time <TWB2%Rates%FAR@BANGATE.PGE.COM>
Subject: Re: Put statement
A SAS character variable cannot exceed 200 characters. If you really want to
define a string longer than 200 characters, switch languages. One way to write
250 X's is:
DATA _NULL_;
FILE OUTFILE LRECL=256;
DO LOOP=0 TO 24;
PTR=2+10*LOOP;
PUT @ PTR "XXXXXXXXXX" @ ;
END;
PUT;
RUN;
I use versions of this from time to time to simulate the SAS _INFILE_ ruler (the
dump of an input record with three line tall column numbers like
00000000000000000000...
00000000011111111112...
12345678901234567890...
Tim Berryhill - Contract Programmer and General Wizard
TWB2@PGE.COM or http://www.aartwolf.com/twb.html
Frequently at Pacific Gas & Electric Co., San Francisco
The correlation coefficient between their views and
my postings is slightly less than 0
----------------------[Reply - Original Message]----------------------
Sent by:Tim Pi <fmrco!timpi@UUNET.UU.NET>
Hi SAS users,
I want to output a character string with more than 200
characters but get an error message telling that my string
is more than 200 characters. My code is as follows:
file OUTFILE lrecl = 256 ls = 256;
put @2 "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ...... ";
How can I output a string with more than 200 characters?
Thx!
Tim Pi
=====================================================================