Date: Wed, 28 May 1997 13:25:34 PDT
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
Subject: Re: Input statement problem in 6.12
Victor, Are you SURE this program worked in 6.04? The INFILE option MISSOVER
explicitly requests that any value shorter than 9 characters be set to missing.
Well, it actually requests a missing value when you read past the end of the
line. I do not have a copy of 6.04 available, but I do not believe MISSOVER
meant something else back then. Ahh! Could it be that the original input files
had blanks after short values? Your log shows RECFM=V (variable length
records), but perhaps the original files used RECFM=F (fixed length, blank
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:Victor Kamensky <kamensky@AECOM.YU.EDU>
I run the following program in 6.12 for WINDOWS 95(actually,all WINDOWS
version I tried give the same result).
29 data t;
30 length name $ 9;
31 infile 'names.txt' missover;
32 input name $ 1-9;
NOTE: The infile 'names.txt' is:
NOTE: 2 records were read from the infile 'names.txt'.
The minimum record length was 5.
The maximum record length was 5.
NOTE: The data set WORK.T has 2 observations and 1 variables.
NOTE: The DATA statement used 0.11 seconds.
33 proc print;run;
NOTE: The PROCEDURE PRINT used 0.0 seconds.
The length of names in the input files is less than 9:
Input file is:
Reluts is the following:blank names.
The SAS System 15:39 Wednesday, May
28, 1997 4
In SAS 6.04 the result is expectable:correct names will be printed.
Of course,I can change the program,for example,
input names; will produce correct results.
But the problem is the following:
I have a lot of programs like this one written in 6.04,and it will take a lot
of time to find and change all such things.
Is there a simpler solution?
Any comments,suggestions will be appreciated.
Albert Einstein College of Medicine