<?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: How to read Mainframe file name in SAS in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-read-Mainframe-file-name-in-SAS/m-p/115884#M9819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, you actually found someone who knows what a GDG is!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you mean that you want to "read" the filename. I assume this is different from reading the file? Where are you trying to read it from?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jan 2013 20:08:06 GMT</pubDate>
    <dc:creator>TomKari</dc:creator>
    <dc:date>2013-01-04T20:08:06Z</dc:date>
    <item>
      <title>How to read Mainframe file name in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-read-Mainframe-file-name-in-SAS/m-p/115883#M9818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to read a mainframe GDG file name in SAS. Is there any specfic code or command to achive this task? I have read about JFCB option but this works only in Mainframe SAS but not in Windows SAS.&lt;/P&gt;&lt;P&gt;Can any one please help me on this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Venu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 18:49:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-read-Mainframe-file-name-in-SAS/m-p/115883#M9818</guid>
      <dc:creator>ChVenu</dc:creator>
      <dc:date>2013-01-04T18:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to read Mainframe file name in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-read-Mainframe-file-name-in-SAS/m-p/115884#M9819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, you actually found someone who knows what a GDG is!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you mean that you want to "read" the filename. I assume this is different from reading the file? Where are you trying to read it from?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 20:08:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-read-Mainframe-file-name-in-SAS/m-p/115884#M9819</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2013-01-04T20:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to read Mainframe file name in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-read-Mainframe-file-name-in-SAS/m-p/115885#M9820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to read a mainframe file(Z/OS file) from SAS EG. GDG is nothing but genaration data groups where multiple versions of the files will be generated as shown below..&lt;/P&gt;&lt;P&gt;OPSDESK.PHONES.UNPAIRED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;OPSDESK.PHONES.UNPAIRED.&lt;STRONG&gt;G0001V00&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;OPSDESK.PHONES.UNPAIRED.&lt;STRONG&gt;G0002V00&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;OPSDESK.PHONES.UNPAIRED.&lt;STRONG&gt;G0003V00&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;OPSDESK.PHONES.UNPAIRED.&lt;STRONG&gt;G0004V00&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;OPSDESK.PHONES.UNPAIRED.&lt;STRONG&gt;G0005V00&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;OPSDESK.PHONES.UNPAIRED.&lt;STRONG&gt;G0006V00&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirement:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Every day tehre is a new version available which I need to read. To make sure that the file i'm reading is not the same one which I have read yesterday I want to save the file name which I have read so that I can do a compre with the file names next time before its goes on with further execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if my query is not clear&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 20:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-read-Mainframe-file-name-in-SAS/m-p/115885#M9820</guid>
      <dc:creator>ChVenu</dc:creator>
      <dc:date>2013-01-04T20:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to read Mainframe file name in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-read-Mainframe-file-name-in-SAS/m-p/115886#M9821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the FILENAME option on the INFILE statement help?&amp;nbsp; Try something like this to test.&amp;nbsp; If you are lucky you can use relative reference in the DD statement and SAS will display the absolute reference in the value of the FILENAME variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//MYFILE DD DSN=.....&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; length filename $200 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; infile myfile filename=filename;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; input;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; put filename=;&lt;/P&gt;&lt;P&gt;&amp;nbsp; stop;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 21:30:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-read-Mainframe-file-name-in-SAS/m-p/115886#M9821</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-01-04T21:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to read Mainframe file name in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-read-Mainframe-file-name-in-SAS/m-p/115887#M9822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's still something I'm missing. You're running SAS EG on your Windows PC, accessing a Generation Data Set, presumably sitting on a z/os mainframe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. What SAS server is your EG session using? What OS does it run?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. How are you creating the link to your Generation Data Set? Do you use an INFILE statement in SAS code?&lt;/P&gt;&lt;P&gt;If it is code that you've created, could you post it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 02:19:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-read-Mainframe-file-name-in-SAS/m-p/115887#M9822</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2013-01-05T02:19:49Z</dc:date>
    </item>
  </channel>
</rss>

