<?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 concatenated MVS datasets from pc-SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Reading-concatenated-MVS-datasets-from-pc-SAS/m-p/17972#M3483</link>
    <description>Thanks</description>
    <pubDate>Tue, 14 Apr 2009 13:15:35 GMT</pubDate>
    <dc:creator>marka</dc:creator>
    <dc:date>2009-04-14T13:15:35Z</dc:date>
    <item>
      <title>Reading concatenated MVS datasets from pc-SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-concatenated-MVS-datasets-from-pc-SAS/m-p/17970#M3481</link>
      <description>On the mainframe (MVS) I know how to read in multiple datasets using the concatenated DD stmt.  Is there something similar for pc-SAS (Windows) when reading MVS datasets using the FILENAME FTP statement?</description>
      <pubDate>Mon, 13 Apr 2009 20:58:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-concatenated-MVS-datasets-from-pc-SAS/m-p/17970#M3481</guid>
      <dc:creator>marka</dc:creator>
      <dc:date>2009-04-13T20:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Reading concatenated MVS datasets from pc-SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-concatenated-MVS-datasets-from-pc-SAS/m-p/17971#M3482</link>
      <description>Not that I'm aware of - the ability to concatenate files is within the FILENAME specification and enclosing your quoted files in parentheses.  I don't expect that you can open two concurrent FTP connections as a concatenation.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 13 Apr 2009 22:11:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-concatenated-MVS-datasets-from-pc-SAS/m-p/17971#M3482</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-04-13T22:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reading concatenated MVS datasets from pc-SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-concatenated-MVS-datasets-from-pc-SAS/m-p/17972#M3483</link>
      <description>Thanks</description>
      <pubDate>Tue, 14 Apr 2009 13:15:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-concatenated-MVS-datasets-from-pc-SAS/m-p/17972#M3483</guid>
      <dc:creator>marka</dc:creator>
      <dc:date>2009-04-14T13:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reading concatenated MVS datasets from pc-SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-concatenated-MVS-datasets-from-pc-SAS/m-p/17973#M3484</link>
      <description>don't give up just yet.&lt;BR /&gt;
The syntax definition allows concatenation within the filename statement. &lt;BR /&gt;
I just had some success with code like[pre]filename fcont ftp ("'AUP.SREED.ACT.AVP.PETER(H)'" &lt;BR /&gt;
                    "'AUP.SREED.ACT.AVP(EXIST)'"   )&lt;BR /&gt;
   user= 'your user ID' &lt;BR /&gt;
   prompt /*for password*/  &lt;BR /&gt;
   HOST='your hostname'&lt;BR /&gt;
   ;&lt;BR /&gt;
data _null_ ;&lt;BR /&gt;
   length filen $200 ;&lt;BR /&gt;
   infile fcont  filename= filen ;&lt;BR /&gt;
   input ;&lt;BR /&gt;
   if filen ne lag(filen) then put filen= ;&lt;BR /&gt;
   put _infile_ ;&lt;BR /&gt;
run ; [/pre]PeterC</description>
      <pubDate>Tue, 14 Apr 2009 15:49:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-concatenated-MVS-datasets-from-pc-SAS/m-p/17973#M3484</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-04-14T15:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Reading concatenated MVS datasets from pc-SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-concatenated-MVS-datasets-from-pc-SAS/m-p/17974#M3485</link>
      <description>The EOV INFILE statement option provides a more general method for concatenation boundary detection.  Using changes to the value of FILENAME would not work if the files have the same name by design or accident when FILENAME is defined with improper attributes.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
filename FT15F001 temp;&lt;BR /&gt;
   parmcards;&lt;BR /&gt;
Use EOV&lt;BR /&gt;
1&lt;BR /&gt;
2&lt;BR /&gt;
3&lt;BR /&gt;
4&lt;BR /&gt;
5&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
filename FT30F001 ("%sysfunc(pathname(ft15f001))" "%sysfunc(pathname(ft15f001))" "%sysfunc(pathname(ft15f001))");&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   length filename $100;&lt;BR /&gt;
   infile FT30F001 eov=eov filename=filename;&lt;BR /&gt;
   input;&lt;BR /&gt;
   if _n_ eq 1 or EOV then do;&lt;BR /&gt;
      put 'NOTE: ' _n_= filename=;&lt;BR /&gt;
      eov = 0;&lt;BR /&gt;
      end;&lt;BR /&gt;
   run;[/pre]</description>
      <pubDate>Tue, 14 Apr 2009 17:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-concatenated-MVS-datasets-from-pc-SAS/m-p/17974#M3485</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-04-14T17:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reading concatenated MVS datasets from pc-SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-concatenated-MVS-datasets-from-pc-SAS/m-p/17975#M3486</link>
      <description>Thanks, this works great!</description>
      <pubDate>Fri, 08 May 2009 19:27:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-concatenated-MVS-datasets-from-pc-SAS/m-p/17975#M3486</guid>
      <dc:creator>marka</dc:creator>
      <dc:date>2009-05-08T19:27:46Z</dc:date>
    </item>
  </channel>
</rss>

