<?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: Capturing physical input file name within a SAS program in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Capturing-physical-input-file-name-within-a-SAS-program/m-p/193244#M48520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the dictionary table EXTFILES:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your SAS program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select * from dictionary.extfiles;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2015 21:13:21 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2015-03-03T21:13:21Z</dc:date>
    <item>
      <title>Capturing physical input file name within a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Capturing-physical-input-file-name-within-a-SAS-program/m-p/193243#M48519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a SAS program executing on an IBM mainframe as part of a submitted batch job.&amp;nbsp; The file specified in the JCL as input to this program is a GDG file MY.INPUT.FILE(0).&amp;nbsp; Whenever I execute this program, I want to be able to capture and save the value of the name of the absolute generation of the file so it can be passed in the output file.&amp;nbsp; For example, today my program may be reading MY.INPUT.FILE.G0176V00. Is there a way to identify/capture the absolute generation file name in the SAS program?&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 20:39:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Capturing-physical-input-file-name-within-a-SAS-program/m-p/193243#M48519</guid>
      <dc:creator>sparky</dc:creator>
      <dc:date>2015-03-03T20:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing physical input file name within a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Capturing-physical-input-file-name-within-a-SAS-program/m-p/193244#M48520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the dictionary table EXTFILES:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your SAS program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select * from dictionary.extfiles;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 21:13:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Capturing-physical-input-file-name-within-a-SAS-program/m-p/193244#M48520</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-03-03T21:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Capturing physical input file name within a SAS program</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Capturing-physical-input-file-name-within-a-SAS-program/m-p/193245#M48521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try the FILENAME option on the INFILE statement? &lt;/P&gt;&lt;P&gt;Not sure what that would return on that OS but it can't hurt to try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;//INDD DD DSN=MY.INPUT.FILE(0)...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data x ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; length filename filenm $200 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; infile indd filename=filenm ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; input;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp; filename = filenm;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 21:59:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Capturing-physical-input-file-name-within-a-SAS-program/m-p/193245#M48521</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-03-03T21:59:36Z</dc:date>
    </item>
  </channel>
</rss>

