<?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: SQL wrapper script question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-wrapper-script-question/m-p/5181201#M682722</link>
    <description>I would like to rephrase this again... the problem lies not with the sql part but with the for loop itself.&lt;BR /&gt;&lt;BR /&gt;The file from which the for loop is picking up entries has spaces and its picking up entries based on the spaces and not carriage return as I would like.&lt;BR /&gt;&lt;BR /&gt;Is there a solution to this problem.&lt;BR /&gt;&lt;BR /&gt;BTW the enties are like this - &lt;BR /&gt;&lt;BR /&gt;Allan M&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;so it taking Allan as one entry and M as another entry and I would rather want the value of $j to be Allan M and not just Allan or M individually.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Allan</description>
    <pubDate>Fri, 12 Jun 2009 18:53:12 GMT</pubDate>
    <dc:creator>Allanm</dc:creator>
    <dc:date>2009-06-12T18:53:12Z</dc:date>
    <item>
      <title>SQL wrapper script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-wrapper-script-question/m-p/5181199#M682720</link>
      <description>I created a sql wrapper script which is doing a select statement on a set of data in a for loop.&lt;BR /&gt;&lt;BR /&gt;The problem is that the select statement returns a truncated view(specially member name) of the output, can this be un-truncated.&lt;BR /&gt;&lt;BR /&gt;Please find the script attached.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Allan</description>
      <pubDate>Fri, 12 Jun 2009 18:00:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-wrapper-script-question/m-p/5181199#M682720</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2009-06-12T18:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: SQL wrapper script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-wrapper-script-question/m-p/5181200#M682721</link>
      <description>Can you post a piece of what is returned?&lt;BR /&gt;&lt;BR /&gt;Perhaps you need to set some formats for the columns in your select.</description>
      <pubDate>Fri, 12 Jun 2009 18:49:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-wrapper-script-question/m-p/5181200#M682721</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2009-06-12T18:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: SQL wrapper script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-wrapper-script-question/m-p/5181201#M682722</link>
      <description>I would like to rephrase this again... the problem lies not with the sql part but with the for loop itself.&lt;BR /&gt;&lt;BR /&gt;The file from which the for loop is picking up entries has spaces and its picking up entries based on the spaces and not carriage return as I would like.&lt;BR /&gt;&lt;BR /&gt;Is there a solution to this problem.&lt;BR /&gt;&lt;BR /&gt;BTW the enties are like this - &lt;BR /&gt;&lt;BR /&gt;Allan M&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;so it taking Allan as one entry and M as another entry and I would rather want the value of $j to be Allan M and not just Allan or M individually.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Allan</description>
      <pubDate>Fri, 12 Jun 2009 18:53:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-wrapper-script-question/m-p/5181201#M682722</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2009-06-12T18:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: SQL wrapper script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-wrapper-script-question/m-p/5181202#M682723</link>
      <description>Ahh...I see.&lt;BR /&gt;&lt;BR /&gt;Try this instead:&lt;BR /&gt;&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;while read j&lt;BR /&gt;do&lt;BR /&gt;(~allanm/bin/sql passwd &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;select member_id,member_name from ContactInfo_tbl where member_name = '${j}';&lt;BR /&gt;EOF&lt;BR /&gt;)&lt;BR /&gt;done &amp;lt; ~allanm/data</description>
      <pubDate>Fri, 12 Jun 2009 19:01:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-wrapper-script-question/m-p/5181202#M682723</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2009-06-12T19:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: SQL wrapper script question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sql-wrapper-script-question/m-p/5181203#M682724</link>
      <description>That worked!&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Allan</description>
      <pubDate>Fri, 12 Jun 2009 19:03:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sql-wrapper-script-question/m-p/5181203#M682724</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2009-06-12T19:03:31Z</dc:date>
    </item>
  </channel>
</rss>

