🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 05-18-2017 07:02 AM
(2098 views)
Hi,
I analyze log files which historically have been text based; with the increase in hacking attacks, these now contain binary data from other servers. SAS can't read past certain locations and I suspect there is an embedded EOF character in them.
I've tried several options on the filename and infile statements to read the 11 lines of the attached sample. Is there something I can use that will read all 11 lines?
Example:
data test;
infile 'c:\smtp.txt';
input;
put _infile_;
run;
only reports 4 lines read.
Thanks!
--Ben
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
data test; infile 'c:\smtp.txt' ignoredoseof; input; put _infile_; run;
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
This seems to work fine for me:
data want; infile "c:\smtp.txt" lrecl=32767 dsd; length res $2000; input res $; run;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
data test; infile 'c:\smtp.txt' ignoredoseof; input; put _infile_; run;