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 (July 2007, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 10 Jul 2007 14:18:25 -0400
Reply-To:   "Richard A. DeVenezia" <rdevenezia@WILDBLUE.NET>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Richard A. DeVenezia" <rdevenezia@WILDBLUE.NET>
Organization:   Internet News Service
Subject:   Infinite loop with INPUT
Comments:   To: sas-l@uga.edu

An input statement incorrectly has $1 instead of $1.

Any insights on why this code goes into an infinite loop ?

data x; input a $1 @@; x+1; if x > 100 then stop; %* guard; cards; 1 run;

$1. yields 80 rows (not sure why... linesize is 96)

data x; input a $1. @@; x+1; if x > 100 then stop; %* guard; cards; 1 run;

and this yields but one row

data x; length a $1; input a @@; x+1; if x > 100 then stop; cards; 1 run;

-- Richard A. DeVenezia


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