<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Reading a filename from a dataset in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Reading-a-filename-from-a-dataset/m-p/169460#M43822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This isn't valid code in SQL, either switch it to a data step or you'll need to change it to appropriate SQL.&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select flnm into :file1 from latest_file where _n_=1;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the data step equivalent. This creates a macro variable &amp;amp;file1 that you don't seem to be using anywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set latest_file;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if _n_=1 then call symput('file1', flnm);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%put &amp;amp;file1.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2014 20:54:02 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2014-07-07T20:54:02Z</dc:date>
    <item>
      <title>Reading a filename from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-a-filename-from-a-dataset/m-p/169457#M43819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;I am really new to SAS and so far am enjoying every bit of learning the language.&lt;/P&gt;&lt;P&gt;I need help with a small piece of code that I am trying to write to automate a process. What I am trying to do is read the contents of a .txt file in a dataset. the file should have the latest timestamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;I am able to get the filename (with the latest timestamp) in the latest_file dataset. I want to be able to extract the filename from the dataset and read the contents of the file in a new dataset.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate all your help.&lt;/P&gt;&lt;P&gt;I have spent over 2 days trying to get this work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS code attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Code snippet below */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data latest_file;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set all_file_sorted (firstobs=1 obs=1);&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;filename file1; &lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select flnm into :file1 from latest_file where _n_=1;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;data WORK.AB_TEST;&lt;/P&gt;&lt;P&gt;%let _EFIERR_ = 0; /* set the ERROR detection macro variable */&lt;/P&gt;&lt;P&gt;infile "file1" delimiter = '|' MISSOVER DSD lrecl=32767 firstobs=2 ;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;/* Code snippet End */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 20:38:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-a-filename-from-a-dataset/m-p/169457#M43819</guid>
      <dc:creator>aquabu</dc:creator>
      <dc:date>2014-07-07T20:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a filename from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-a-filename-from-a-dataset/m-p/169458#M43820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have an external file associated with file1 and the syntax infile "file1" is going to look for file relative to where SAS is executing that is named file1.&lt;/P&gt;&lt;P&gt;if SAS is executing with a default location like C:\users\username\AppData\Local\Temp then that is the location FILE1 needs to be in. If you use a fully qualified file path as you do with INDAT that might solve the problem but then the syntax is infile File1 without quotes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 20:46:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-a-filename-from-a-dataset/m-p/169458#M43820</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-07-07T20:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a filename from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-a-filename-from-a-dataset/m-p/169459#M43821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure, if you put &lt;STRONG&gt;&amp;amp;file1&lt;/STRONG&gt; instead of file1 in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;infile "file1" delimiter = '|' MISSOVER DSD lrecl=32767 firstobs=2 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and remove %let _EFIERR_ = 0; /* set the ERROR detection macro variable */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from the code to see if it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 20:47:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-a-filename-from-a-dataset/m-p/169459#M43821</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-07-07T20:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a filename from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-a-filename-from-a-dataset/m-p/169460#M43822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This isn't valid code in SQL, either switch it to a data step or you'll need to change it to appropriate SQL.&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select flnm into :file1 from latest_file where _n_=1;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the data step equivalent. This creates a macro variable &amp;amp;file1 that you don't seem to be using anywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set latest_file;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if _n_=1 then call symput('file1', flnm);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%put &amp;amp;file1.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 20:54:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-a-filename-from-a-dataset/m-p/169460#M43822</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-07-07T20:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a filename from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-a-filename-from-a-dataset/m-p/169461#M43823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your replies.&lt;/P&gt;&lt;P&gt;Ok my bad. I will rephrase my original question again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i want to achieve is get the filename from '&lt;EM&gt;latest_file&lt;/EM&gt;' and use that to read the file in &lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;WORK.AB_TEST&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The full code is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;** 'filepath' is the file directory storing the file(s) which will be renamed; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;%LET filepath= %NRBQUOTE(C:\sasdata\datatest\); &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;** 'delimiter' is the delimiter used in filenames; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;%LET delimiter= %NRBQUOTE(_); &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;** 'file_extension' is the file extension of the external data file(s); &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;%LET file_extension= %NRBQUOTE(.txt); &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FILENAME indat PIPE "dir ""&amp;amp;filepath.*&amp;amp;file_extension"" ";&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DATA all_file;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; INFILE indat TRUNCOVER;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; INPUT fldt $ 1-11 fltm $ 12-22 flsiz $ 25-38 flnm $ 39-100;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RUN;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PROC SQL;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CREATE TABLE all_file_info AS&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SELECT * &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM all_file&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHERE NOT (INDEXC(fldt,'Check','Directory')&amp;gt;0 OR MISSING(fldt));&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RUN;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PROC SORT DATA=all_file_info OUT=all_file_sorted ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; BY flsiz ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RUN ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;data latest_file;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; set all_file_sorted (firstobs=1 obs=1);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;run; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;PROC PRINT DATA=latest_file ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RUN ; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;data WORK.AB_TEST;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;%let _EFIERR_ = 0; /* set the ERROR detection macro variable */&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;infile &amp;lt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;HOW DO I GET THE FILENAME HERE&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt; delimiter = '|' MISSOVER DSD lrecl=32767 firstobs=2 ;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;..&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;..&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;Run;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 20:54:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-a-filename-from-a-dataset/m-p/169461#M43823</guid>
      <dc:creator>aquabu</dc:creator>
      <dc:date>2014-07-07T20:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a filename from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-a-filename-from-a-dataset/m-p/169462#M43824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set latest_file;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if _n_=1 then call symput('file1', flnm);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%put &amp;amp;file1.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;data WORK.AB_TEST;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;%let _EFIERR_ = 0; /* set the ERROR detection macro variable */&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;infile &lt;/EM&gt;&lt;STRONG&gt;"&amp;amp;file1"&lt;/STRONG&gt;&lt;EM&gt; delimiter = '|' MISSOVER DSD lrecl=32767 firstobs=2 ;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;...&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;..&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;..&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; background-color: #ffffff;"&gt;&lt;EM&gt;Run;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 20:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-a-filename-from-a-dataset/m-p/169462#M43824</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-07-07T20:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a filename from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-a-filename-from-a-dataset/m-p/169463#M43825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a ton!&lt;/P&gt;&lt;P&gt;That worked. I should have posted here earlier!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 21:01:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-a-filename-from-a-dataset/m-p/169463#M43825</guid>
      <dc:creator>aquabu</dc:creator>
      <dc:date>2014-07-07T21:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a filename from a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-a-filename-from-a-dataset/m-p/169464#M43826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you have a dataset with a variable that contains the name of the file that you want to read to create a new dataset?&amp;nbsp; You do not have to use a macro variable in that case. You can use the FILEVAR option on the INFILE statement to tell it that the name of the file to read is already in a dataset variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ab_test ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; _n_=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; latest_file;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;infile&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; dat &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;filevar&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=flnm &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;delimiter&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'|'&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;TRUNCOVER&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;DSD&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;lrecl&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;32767&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;firstobs&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;....&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;P.S. Use TRUNCOVER instead of MISSOVER and save yourself a lot of trouble when reading variable length lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 03:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-a-filename-from-a-dataset/m-p/169464#M43826</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-07-08T03:06:42Z</dc:date>
    </item>
  </channel>
</rss>

