Date: Tue, 11 Mar 2008 10:23:34 -0700
Reply-To: Duh_OZ <ozzy.kopec@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Duh_OZ <ozzy.kopec@GMAIL.COM>
Organization: http://groups.google.com
Subject: Re: Noobie here - EOF (hex 1A) Q. (long post)
Content-Type: text/plain; charset=ISO-8859-1
On Mar 11, 11:24 am, gerhard.hellrie...@T-ONLINE.DE (Gerhard
Hellriegel) wrote:
> In that case I think, you don't have SAS V9?
>
> From the docu of V9 for the INFILE statement:
>
> IGNOREDOSEOF
> is used in the context of I/O operations on variable record format files.
> When this option is specified, any occurrence of ^Z is interpreted as
> character data and not as an end-of-file marker.
>
> Gerhard
>
>
<stuff snipped>
======
From the log:
NOTE: SAS 9.1.3 Service Pack 3
You are running SAS 9. Some SAS 8 files will be automatically
converted
=======
I'm looking for an option to let the system know when it reads in the
EOF I don't want the record processed. It seems that it just sets all
fields to null, hence I put the "if unit NE .;" statement in. In my
case unit could never be null so it was kind of a backdoor method of
blowing off the record. My thinking was the file reading stopped on
hex 1A, which it does, but it also tries to process the record.
Also, toss in some files may have the 1A in them, others may not.
By the by, running in non-interactive mode (if that makes a diff on
some options).
|