<?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: SAS Pipe gives error in batch after uncertain time period in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Pipe-gives-error-in-batch-after-uncertain-time-period/m-p/646578#M193458</link>
    <description>&lt;P&gt;Sorry for the long wait.&lt;BR /&gt;Here's the Log:&lt;/P&gt;&lt;PRE&gt;4165      +*filename FlistCB4 pipe "dir /s/b/a-d ""\\danskenet.net\public\Dat\4841CPM\28 Kredit\15
4165     !+Green Loans\*.xlsx""";
4166      +filename FlistCB4 pipe "dir /s/b/a-d ""I:\Dat\4841CPM\28 Kredit\15 Green Loans\*.xlsx""";
4167      +
4168      +
4169      +data FlistIOME;
4170      +  infile FlistCB4 lrecl=500 truncover;
4171      +  input this_file $500.;
4172      +  attrib
4173      +    Folder_Name length=$60
4174      +    Filename length=$60
4175      +    Date format=yymmdd10.
4176      +  	HAT length=$8
4177      +	hat2 length=$4
4178      +  ;
4179      +  /* remove all rows with folder names not complying with naming convention */
4180      +  	Folder_Name=scan(this_file,-2,'/\');
4181      +  	Filename=scan(this_file,-1,'/\');
4182      +	HAT=substr(Filename,length(Filename)-12,8);
4183      +	Date=input(substr(Filename,length(Filename)-12,8),yymmdd10.);
4184      +	hat2=substr(Filename,length(Filename)-3,4);
4185      +	hat3=substr(Filename,1,11);
4186      +    if upcase(HAT3)='GREEN_LOANS';
4187      +	if not missing(Date) ;
4188      +run;

NOTE: The infile FLISTCB4 is:
      Unnamed Pipe Access Device,
      PROCESS=dir /s/b/a-d "I:\Dat\4841CPM\28 Kredit\15 Green Loans\*.xlsx",
      RECFM=V,LRECL=500

Stderr output:
Invalid Signature.
NOTE: 0 records were read from the infile FLISTCB4.
NOTE: The data set WORK.FLISTIOME has 0 observations and 7 variables.&lt;/PRE&gt;</description>
    <pubDate>Mon, 11 May 2020 07:16:03 GMT</pubDate>
    <dc:creator>SirRolin</dc:creator>
    <dc:date>2020-05-11T07:16:03Z</dc:date>
    <item>
      <title>SAS Pipe gives error in batch after uncertain time period</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Pipe-gives-error-in-batch-after-uncertain-time-period/m-p/645204#M192842</link>
      <description>&lt;P&gt;Hi, I have had some mysterious behaviours in SAS,&lt;BR /&gt;I have 4 different SAS Codes, that is getting used in a batch run,&lt;BR /&gt;Each of them use the same pipe code, but the 3rd and 4th Pipes fail.&lt;BR /&gt;I have tried to Clear the name after I am done with the pipes, didn't help.&lt;BR /&gt;I tried to make different names for all the pipes, didn't help.&lt;BR /&gt;but it is only when run in batch that they fail, if I run them manually they do work. all of them.&lt;BR /&gt;Here's the Pipe.&lt;BR /&gt;filename FlistCB4 pipe "dir /s/b/a-d ""I:\Dat\4841CPM\28 Kredit\15 Green Loans\*.xlsx""";&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 07:20:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Pipe-gives-error-in-batch-after-uncertain-time-period/m-p/645204#M192842</guid>
      <dc:creator>SirRolin</dc:creator>
      <dc:date>2020-05-11T07:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Pipe gives error in batch after uncertain time period</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Pipe-gives-error-in-batch-after-uncertain-time-period/m-p/645224#M192850</link>
      <description>&lt;P&gt;Hi and welcome to the communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post the whole log of such a failed call to the pipe (including the FILENAME statement and the data/procedure step where the file reference is used).&lt;/P&gt;
&lt;P&gt;Please use the &amp;lt;/&amp;gt; button for posting the log:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.png"&gt;&lt;img src="https://communities.sas.com/skins/images/70F8802BAA6255D55FBEC62A8226FB10/responsive_peak/images/image_not_found.png" alt="Bildschirmfoto 2020-04-07 um 08.32.59.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 09:55:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Pipe-gives-error-in-batch-after-uncertain-time-period/m-p/645224#M192850</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-05T09:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Pipe gives error in batch after uncertain time period</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Pipe-gives-error-in-batch-after-uncertain-time-period/m-p/645330#M192896</link>
      <description>&lt;P&gt;Is the content of the pipe expected to change between uses? If not then I would suggest a method to capture the result one time (the first??) and place the result in a data set in a library that all of the code can access.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 15:13:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Pipe-gives-error-in-batch-after-uncertain-time-period/m-p/645330#M192896</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-05-05T15:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Pipe gives error in batch after uncertain time period</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Pipe-gives-error-in-batch-after-uncertain-time-period/m-p/646578#M193458</link>
      <description>&lt;P&gt;Sorry for the long wait.&lt;BR /&gt;Here's the Log:&lt;/P&gt;&lt;PRE&gt;4165      +*filename FlistCB4 pipe "dir /s/b/a-d ""\\danskenet.net\public\Dat\4841CPM\28 Kredit\15
4165     !+Green Loans\*.xlsx""";
4166      +filename FlistCB4 pipe "dir /s/b/a-d ""I:\Dat\4841CPM\28 Kredit\15 Green Loans\*.xlsx""";
4167      +
4168      +
4169      +data FlistIOME;
4170      +  infile FlistCB4 lrecl=500 truncover;
4171      +  input this_file $500.;
4172      +  attrib
4173      +    Folder_Name length=$60
4174      +    Filename length=$60
4175      +    Date format=yymmdd10.
4176      +  	HAT length=$8
4177      +	hat2 length=$4
4178      +  ;
4179      +  /* remove all rows with folder names not complying with naming convention */
4180      +  	Folder_Name=scan(this_file,-2,'/\');
4181      +  	Filename=scan(this_file,-1,'/\');
4182      +	HAT=substr(Filename,length(Filename)-12,8);
4183      +	Date=input(substr(Filename,length(Filename)-12,8),yymmdd10.);
4184      +	hat2=substr(Filename,length(Filename)-3,4);
4185      +	hat3=substr(Filename,1,11);
4186      +    if upcase(HAT3)='GREEN_LOANS';
4187      +	if not missing(Date) ;
4188      +run;

NOTE: The infile FLISTCB4 is:
      Unnamed Pipe Access Device,
      PROCESS=dir /s/b/a-d "I:\Dat\4841CPM\28 Kredit\15 Green Loans\*.xlsx",
      RECFM=V,LRECL=500

Stderr output:
Invalid Signature.
NOTE: 0 records were read from the infile FLISTCB4.
NOTE: The data set WORK.FLISTIOME has 0 observations and 7 variables.&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 May 2020 07:16:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Pipe-gives-error-in-batch-after-uncertain-time-period/m-p/646578#M193458</guid>
      <dc:creator>SirRolin</dc:creator>
      <dc:date>2020-05-11T07:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Pipe gives error in batch after uncertain time period</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Pipe-gives-error-in-batch-after-uncertain-time-period/m-p/646579#M193459</link>
      <description>yes it's supposed to change.</description>
      <pubDate>Mon, 11 May 2020 07:17:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Pipe-gives-error-in-batch-after-uncertain-time-period/m-p/646579#M193459</guid>
      <dc:creator>SirRolin</dc:creator>
      <dc:date>2020-05-11T07:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Pipe gives error in batch after uncertain time period</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Pipe-gives-error-in-batch-after-uncertain-time-period/m-p/646652#M193478</link>
      <description>&lt;P&gt;The "Invalid Signature" is a Windows response connected to a problem in the SMB protocol. It usually happens when connecting to older NAS boxes that do not support a certain security feature introduced with Windows Server 2012. A Google search for "windows dir invalid signature" will reveal more.&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2020 11:49:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Pipe-gives-error-in-batch-after-uncertain-time-period/m-p/646652#M193478</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-11T11:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Pipe gives error in batch after uncertain time period</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Pipe-gives-error-in-batch-after-uncertain-time-period/m-p/648344#M194184</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/327164"&gt;@SirRolin&lt;/a&gt; If it's a samba authentication issue, you need be fix that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the other hand, maybe this issue will not be triggered if you don't use a pipe.&lt;/P&gt;
&lt;P&gt;Try listing the files using another logic such as this one: &lt;A href="https://communities.sas.com/t5/SAS-Programming/listing-all-files-within-a-levelectory-and-sublevelectories/m-p/332616/highlight/true#M74887" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Programming/listing-all-files-within-a-levelectory-and-sublevelec...&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2020 23:28:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Pipe-gives-error-in-batch-after-uncertain-time-period/m-p/648344#M194184</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-05-16T23:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Pipe gives error in batch after uncertain time period</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Pipe-gives-error-in-batch-after-uncertain-time-period/m-p/652900#M196087</link>
      <description>Sorry for the huge delay, had lots going on.&lt;BR /&gt;Finally got around to test this, and it worked perfectly. Thx</description>
      <pubDate>Wed, 03 Jun 2020 14:58:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Pipe-gives-error-in-batch-after-uncertain-time-period/m-p/652900#M196087</guid>
      <dc:creator>SirRolin</dc:creator>
      <dc:date>2020-06-03T14:58:08Z</dc:date>
    </item>
  </channel>
</rss>

