<?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: Readin in datasets from a mainframe host in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351717#M81888</link>
    <description>&lt;P&gt;You might show the code from the log that is showing a "0 result"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some things FTP connections may interpret the data differently depending on your transfer settings, binary or text, and the text result may not match the code developed for windows as end of line is different between the two.&lt;/P&gt;
&lt;P&gt;Case sensitivity to names rears an ugly head&lt;/P&gt;
&lt;P&gt;Path construction/referrences&lt;/P&gt;
&lt;P&gt;Permissions (the Unix box can't connect at all for some reason)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2017 14:46:35 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-04-20T14:46:35Z</dc:date>
    <item>
      <title>Readin in datasets from a mainframe host</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351493#M81805</link>
      <description>Hi,&lt;BR /&gt;I have 10 equal datasets to read in and append to each other using the "for" loop&lt;BR /&gt;When i run that process from pc sas( i use ftp to access the datasets) it works fine but when i do it from within unix sas i get a 0 result&lt;BR /&gt;Would any of you have any ecplanaiton what could cause that?&lt;BR /&gt;&lt;BR /&gt;Thx</description>
      <pubDate>Thu, 20 Apr 2017 01:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351493#M81805</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2017-04-20T01:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Readin in datasets from a mainframe host</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351565#M81829</link>
      <description>&lt;P&gt;Posting code and log will help to answer your question.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 07:35:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351565#M81829</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2017-04-20T07:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Readin in datasets from a mainframe host</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351717#M81888</link>
      <description>&lt;P&gt;You might show the code from the log that is showing a "0 result"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some things FTP connections may interpret the data differently depending on your transfer settings, binary or text, and the text result may not match the code developed for windows as end of line is different between the two.&lt;/P&gt;
&lt;P&gt;Case sensitivity to names rears an ugly head&lt;/P&gt;
&lt;P&gt;Path construction/referrences&lt;/P&gt;
&lt;P&gt;Permissions (the Unix box can't connect at all for some reason)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 14:46:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351717#M81888</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-20T14:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Readin in datasets from a mainframe host</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351741#M81897</link>
      <description>&lt;P&gt;this is insane,&lt;/P&gt;
&lt;P&gt;now after so many attempts this thing worked in my&amp;nbsp; unix box too. So now i am still wondering what is it that&amp;nbsp;&amp;nbsp; happened in between?&lt;/P&gt;
&lt;P&gt;I changed nothing,just ran the code 10 times&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 15:23:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351741#M81897</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2017-04-20T15:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Readin in datasets from a mainframe host</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351744#M81900</link>
      <description>&lt;P&gt;Hard to say without seeing logs. &amp;nbsp;A non uncommon problem is setting macro variables in wrong order. So the first attempt fails because you have haven't defined the macro variable before using it. Then you run again and it works because it used the macro variable you defined at some point later in the first attempt.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 15:28:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351744#M81900</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-20T15:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Readin in datasets from a mainframe host</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351749#M81901</link>
      <description>&lt;P&gt;but god knows&amp;nbsp; how many times&amp;nbsp; i&amp;nbsp; tried to&amp;nbsp; run&amp;nbsp; yesterday and&amp;nbsp; even this morning&lt;/P&gt;
&lt;P&gt;i&amp;nbsp; attached the code and&amp;nbsp; the&amp;nbsp; logs&amp;nbsp; so if you&amp;nbsp; guys&amp;nbsp; have time to go over&amp;nbsp; and&amp;nbsp; let me know&amp;nbsp; if you see anyhting strange.&lt;/P&gt;
&lt;P&gt;I just worry that the issue&amp;nbsp; i had&amp;nbsp; might come back&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 15:35:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351749#M81901</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2017-04-20T15:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Readin in datasets from a mainframe host</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351761#M81909</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/34400"&gt;@Tal&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;but god knows&amp;nbsp; how many times&amp;nbsp; i&amp;nbsp; tried to&amp;nbsp; run&amp;nbsp; yesterday and&amp;nbsp; even this morning&lt;/P&gt;
&lt;P&gt;i&amp;nbsp; attached the code and&amp;nbsp; the&amp;nbsp; logs&amp;nbsp; so if you&amp;nbsp; guys&amp;nbsp; have time to go over&amp;nbsp; and&amp;nbsp; let me know&amp;nbsp; if you see anyhting strange.&lt;/P&gt;
&lt;P&gt;I just worry that the issue&amp;nbsp; i had&amp;nbsp; might come back&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Perhaps the FTP server was having availability or response&amp;nbsp;issues?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An example of the log when it fails might be more informative.&lt;/P&gt;
&lt;P&gt;Also running with options MPRINT and SYMBOLGEN may be helpful in debugging if this occurs in the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see several places where you are using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data datasetname;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set datasetname;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;coding structure. Since when these go wrong you have replaced the input set debugging can get harder because you can't do a before/after comparison to validate that everything when as planned.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 16:01:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351761#M81909</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-20T16:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Readin in datasets from a mainframe host</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351774#M81910</link>
      <description>&lt;P&gt;i just took this code over&amp;nbsp; yesterday and&amp;nbsp; will definately make some changes&lt;/P&gt;
&lt;P&gt;thanks for mentioning the mprint and symbolgen .Those 2 can be&amp;nbsp; helpful,yes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The funny thing is&amp;nbsp; i tried to access individially each of the&amp;nbsp; 27 datasets. At some moments i could open the&amp;nbsp; first 2 and&amp;nbsp; i could not the&amp;nbsp; rest then there were moments&amp;nbsp; when i could&amp;nbsp; open all of them but after running the entire code&amp;nbsp; it would fail and the logs&amp;nbsp; wont tell me more&amp;nbsp; than&amp;nbsp; what i sent&amp;nbsp; you.Everyhting seemes&amp;nbsp; fine and&amp;nbsp; it just says 0 records&amp;nbsp; were&amp;nbsp; written to....&lt;/P&gt;
&lt;P&gt;Will use the&amp;nbsp; mprint and&amp;nbsp; symbolgen as&amp;nbsp; those make the&amp;nbsp; log&amp;nbsp; more detailed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you guys for your insights&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 16:10:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351774#M81910</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2017-04-20T16:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Readin in datasets from a mainframe host</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351776#M81912</link>
      <description>&lt;P&gt;Another issue to consider is are you using a GRID environment on Unix? &amp;nbsp;Is it possible that some of the nodes are not properly configured to connect to the FTP site?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 16:15:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351776#M81912</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-20T16:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Readin in datasets from a mainframe host</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351782#M81915</link>
      <description>&lt;P&gt;as&amp;nbsp; a matter&amp;nbsp; of fact i changed the node today and after&amp;nbsp; a&amp;nbsp; few attempts it worked . Dont know... maybe that was what&amp;nbsp; troubled me&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good point to&amp;nbsp; remember&amp;nbsp; . Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 16:23:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Readin-in-datasets-from-a-mainframe-host/m-p/351782#M81915</guid>
      <dc:creator>Tal</dc:creator>
      <dc:date>2017-04-20T16:23:40Z</dc:date>
    </item>
  </channel>
</rss>

