<?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>Question Re: input statement supresses heading whitespaces in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/input-statement-supresses-heading-whitespaces/qaa-p/13817992#M4848835</link>
    <description>&lt;P&gt;Thanks for the help.&lt;/P&gt;
&lt;P&gt;It has worked despite &lt;B&gt;format text&lt;/B&gt; did not work in SQL Anywhere 10 (TEXT Format is the default format here I think).&lt;/P&gt;
&lt;P&gt;I could also solve it in another way, as reading/importing the file as binary (the whole file comes on one row), and then split it to rows using sa_split_list with '\\x0D\
' as delimiter&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2020 07:08:45 GMT</pubDate>
    <dc:creator>Baron</dc:creator>
    <dc:date>2020-01-10T07:08:45Z</dc:date>
    <item>
      <title>input statement supresses heading whitespaces</title>
      <link>https://community.sap.com/t5/technology-q-a/input-statement-supresses-heading-whitespaces/qaq-p/13817988</link>
      <description>&lt;P&gt;I am trying to read the results of SYSTEMINFO in a table, and then distribute each line in columns.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;xp_cmdshell 'systeminfo &amp;gt; c:\\temp\\ssss.txt';&lt;/LI&gt;
&lt;LI&gt;input into mytest from 'c:\\temp\\ssss.txt';&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Visually (on CMD) I can recognize the subresults, because whitespaces are added to each subresult, but, when I 'input' the results into a table then all heading whitespaces are supressed!&lt;/P&gt;
&lt;P&gt;So, the following lines (from ssss.txt):
&lt;/P&gt;&lt;PRE&gt;&lt;B&gt;
Hotfix(es):                                    7 Hotfix(e) installiert.
                                               [01]: KB4533002
&lt;/B&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Are imported in the table as:&lt;/P&gt;
&lt;PRE&gt;&lt;B&gt;
Hotfix(es):                                    7 Hotfix(e) installiert.
[01]: KB4533002
&lt;/B&gt;
&lt;/PRE&gt;

&lt;P&gt;Is there a way to import the whitespaces as they are?&lt;/P&gt;
&lt;P&gt;One more question, is there a way to eliminate the need of the temporary file (ssss.txt)? so that to capture the output of a command issued by xp_cmdshell?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 04:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/input-statement-supresses-heading-whitespaces/qaq-p/13817988</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2020-01-09T04:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: input statement supresses heading whitespaces</title>
      <link>https://community.sap.com/t5/technology-q-a/input-statement-supresses-heading-whitespaces/qaa-p/13817989#M4848832</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Is there a way to import the whitespaces as they are?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I guess INPUT ... FORMAT FIXED or the NOSTRIP clause with the default TEXT format...&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt; Hm, after some tests, both options do not work as I have expected but the LOAD TABLE statement with QUOTES OFF and STRIP OFF does:&lt;/P&gt;
&lt;PRE&gt;drop table if exists MySysInfo;
create table MySysInfo (line char(255));
load table MySysInfo from 'c:\\\\Temp\\\\SystemInfo.txt' format text quotes off strip off ;
select * from MySysInfo;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jan 2020 06:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/input-statement-supresses-heading-whitespaces/qaa-p/13817989#M4848832</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2020-01-09T06:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: input statement supresses heading whitespaces</title>
      <link>https://community.sap.com/t5/technology-q-a/input-statement-supresses-heading-whitespaces/qaa-p/13817991#M4848834</link>
      <description>&lt;P&gt;NOSTRIP Clause supresses trailing blank stripping.&lt;/P&gt;
&lt;P&gt;In my case I need to supress the stripping of Leading blanks.&lt;/P&gt;
&lt;P&gt;FORMAT FIXED brings totally unexpected results!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 07:28:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/input-statement-supresses-heading-whitespaces/qaa-p/13817991#M4848834</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2020-01-09T07:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: input statement supresses heading whitespaces</title>
      <link>https://community.sap.com/t5/technology-q-a/input-statement-supresses-heading-whitespaces/qaa-p/13817992#M4848835</link>
      <description>&lt;P&gt;Thanks for the help.&lt;/P&gt;
&lt;P&gt;It has worked despite &lt;B&gt;format text&lt;/B&gt; did not work in SQL Anywhere 10 (TEXT Format is the default format here I think).&lt;/P&gt;
&lt;P&gt;I could also solve it in another way, as reading/importing the file as binary (the whole file comes on one row), and then split it to rows using sa_split_list with '\\x0D\
' as delimiter&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 07:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/input-statement-supresses-heading-whitespaces/qaa-p/13817992#M4848835</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2020-01-10T07:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: input statement supresses heading whitespaces</title>
      <link>https://community.sap.com/t5/technology-q-a/input-statement-supresses-heading-whitespaces/qaa-p/13817993#M4848836</link>
      <description>&lt;P&gt;With v11 and above, you could also use &lt;A href="http://dcx.sap.com/index.html#sqla170/en/html/3be4b5016c5f10149f10a6db96ba7e52.html"&gt;the OpenString operator in a FROM clause&lt;/A&gt; to read from a file and parse it accordingly. It has options similar to the LOAD TABLE statement.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 07:45:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/input-statement-supresses-heading-whitespaces/qaa-p/13817993#M4848836</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2020-01-10T07:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: input statement supresses heading whitespaces</title>
      <link>https://community.sap.com/t5/technology-q-a/input-statement-supresses-heading-whitespaces/qaa-p/13817994#M4848837</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;It has worked despite format text did not work in SQL Anywhere 10 (TEXT Format is the default format here I think). &lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Ah, I see, for v10 it was still called "FORMAT ASCII" although the encoding could already be non-ASCII...&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 07:48:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/input-statement-supresses-heading-whitespaces/qaa-p/13817994#M4848837</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2020-01-10T07:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: input statement supresses heading whitespaces</title>
      <link>https://community.sap.com/t5/technology-q-a/input-statement-supresses-heading-whitespaces/qaa-p/13817990#M4848833</link>
      <description>&lt;P&gt;If you are wanting to read the file with no changes made to its content, a simple solution would be to use &lt;A href="http://dcx.sybase.com/index.html#sqla170/en/html/3beb56b86c5f101495dbf54443bd191d.html*loio3beb56b86c5f101495dbf54443bd191d"&gt;xp_read_file&lt;/A&gt;().&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 09:32:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/input-statement-supresses-heading-whitespaces/qaa-p/13817990#M4848833</guid>
      <dc:creator>MarkCulp</dc:creator>
      <dc:date>2020-01-10T09:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: input statement supresses heading whitespaces</title>
      <link>https://community.sap.com/t5/technology-q-a/input-statement-supresses-heading-whitespaces/qaa-p/13817995#M4848838</link>
      <description>&lt;P&gt;Yes, I used this procedure to read the file '&lt;B&gt;binary&lt;/B&gt;'&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 11:23:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/input-statement-supresses-heading-whitespaces/qaa-p/13817995#M4848838</guid>
      <dc:creator>Baron</dc:creator>
      <dc:date>2020-01-10T11:23:15Z</dc:date>
    </item>
  </channel>
</rss>

