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 (March 2002, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 12 Mar 2002 11:13:44 +0200
Reply-To:     Jarmo Hurri <wnezb.uheev@UHG.SV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Jarmo Hurri <wnezb.uheev@UHG.SV>
Organization: Laboratory of Computer and Information Science, HUT
Subject:      Maximum input line size?
Content-Type: text/plain; charset=us-ascii

Hi,

A question from a SAS newbie: what is the maximum input line size in SAS, and how can you control it? I'm running into problems when I have a large number of input variables. To show you a concrete example, the following piece of code with ten variables works just fine:

options nocardimage ls=64 nodate; data filter; input (F01 F02 F03 F04 F05 F06 F07 F08 F09 F10 ) (6.3) filter $4.; cards; 1.000 0.019 0.000 0.001 0.002 0.000 0.002 0.006 0.019 0.011 F01 0.040 1.000 0.057 0.021 0.041 0.009 0.002 0.016 0.025 0.003 F02 0.009 0.072 1.000 0.060 0.031 0.012 0.003 0.007 0.003 0.001 F03 0.007 0.039 0.068 1.000 0.058 0.055 0.026 0.016 0.002 0.005 F04 0.001 0.058 0.034 0.056 1.000 0.073 0.025 0.036 0.019 0.012 F05 0.000 0.012 0.023 0.058 0.090 1.000 0.046 0.040 0.006 0.004 F06 0.000 0.003 0.007 0.025 0.022 0.048 1.000 0.091 0.024 0.014 F07 0.005 0.012 0.009 0.013 0.025 0.031 0.085 1.000 0.075 0.030 F08 0.008 0.018 0.000 0.004 0.012 0.005 0.013 0.044 1.000 0.038 F09 0.008 0.006 0.004 0.003 0.013 0.005 0.001 0.035 0.034 1.000 F10 ;

However, when the number of input variables is large, for example, when the input line has 120 variables

input (F01 F02 ... F120 ) (6.3) filter $5.; 1.000 0.019 ... 0.011 F001

SAS gives error message on input line (line 3)

1 options nocardimage ls=64 nodate; 2 data filter; WARNING: Truncated record.

and after a lot of junk output prints

ERROR: No CARDS or INFILE statement.

Since this depends only on the number of variables / length of input line, I must be violating some constraint.

Any help is much appreciated. Thank you in advance.

-- Jarmo Hurri

Spam countermeasures included. Use firstname.lastname@hut.fi as email address or apply rot13 to header email address.


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