<?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: Informix- moving a file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/informix-moving-a-file/m-p/3858416#M778002</link>
    <description>The other method is to wrap your informix programs inside a shell script, which renames the output / report files as necessary and moves them wherever you need to.  These could also decide on the report filename in the first place.&lt;BR /&gt;&lt;BR /&gt;The other method is to generate the correct filename within the program using TODAY/CURRENT keywords into a variable and start the report to the variable name.&lt;BR /&gt;&lt;BR /&gt;Be aware of security implications of using start report to pipe.</description>
    <pubDate>Thu, 07 Sep 2006 08:02:48 GMT</pubDate>
    <dc:creator>Steve Lewis</dc:creator>
    <dc:date>2006-09-07T08:02:48Z</dc:date>
    <item>
      <title>Informix- moving a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/informix-moving-a-file/m-p/3858414#M778000</link>
      <description>In informix code, I know how to write output to a file, but how would I append a datestamp to the end of a file, and them move the file to a different folder once the file has been written to by the program?&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 07 Sep 2006 07:40:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/informix-moving-a-file/m-p/3858414#M778000</guid>
      <dc:creator>Krista A</dc:creator>
      <dc:date>2006-09-07T07:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Informix- moving a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/informix-moving-a-file/m-p/3858415#M778001</link>
      <description>I would look into the "run" command, which can execute OS commands from within 4GL.</description>
      <pubDate>Thu, 07 Sep 2006 07:50:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/informix-moving-a-file/m-p/3858415#M778001</guid>
      <dc:creator>Jonathan Fife</dc:creator>
      <dc:date>2006-09-07T07:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Informix- moving a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/informix-moving-a-file/m-p/3858416#M778002</link>
      <description>The other method is to wrap your informix programs inside a shell script, which renames the output / report files as necessary and moves them wherever you need to.  These could also decide on the report filename in the first place.&lt;BR /&gt;&lt;BR /&gt;The other method is to generate the correct filename within the program using TODAY/CURRENT keywords into a variable and start the report to the variable name.&lt;BR /&gt;&lt;BR /&gt;Be aware of security implications of using start report to pipe.</description>
      <pubDate>Thu, 07 Sep 2006 08:02:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/informix-moving-a-file/m-p/3858416#M778002</guid>
      <dc:creator>Steve Lewis</dc:creator>
      <dc:date>2006-09-07T08:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Informix- moving a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/informix-moving-a-file/m-p/3858417#M778003</link>
      <description>Krista,&lt;BR /&gt;you could use a stored procedure which uses the "SYSTEM" command.&lt;BR /&gt;This procedure would then be called via:&lt;BR /&gt;EXECUTE PROCEDURE &lt;BR /&gt;&lt;BR /&gt;Further reading (Can not vouch for the source):&lt;BR /&gt;&lt;A href="http://docs.rinet.ru/InforSmes/index.htm" target="_blank"&gt;http://docs.rinet.ru/InforSmes/index.htm&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Sep 2006 08:06:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/informix-moving-a-file/m-p/3858417#M778003</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-09-07T08:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Informix- moving a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/informix-moving-a-file/m-p/3858418#M778004</link>
      <description>Jonathan_Fife,&lt;BR /&gt;So, by using the run command, you mean that I could do something like:&lt;BR /&gt;&lt;BR /&gt;run mv report.out $HOME/report.out.current year to minute&lt;BR /&gt;&lt;BR /&gt;in the 4gl code?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 07 Sep 2006 08:35:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/informix-moving-a-file/m-p/3858418#M778004</guid>
      <dc:creator>Krista A</dc:creator>
      <dc:date>2006-09-07T08:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Informix- moving a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/informix-moving-a-file/m-p/3858419#M778005</link>
      <description>I'd set the command you want to run to a variable, then run that. eg:&lt;BR /&gt;&lt;BR /&gt;DEFINE runcmd char(80),&lt;BR /&gt; returncode int&lt;BR /&gt;&lt;BR /&gt;LET runcmd = "mv report.out $HOME/report.out.", current.year to minute&lt;BR /&gt;RUN runcmd RETURNING returncode&lt;BR /&gt;&lt;BR /&gt;I don't have an Informix environment to test on at the moment, but that should be the general gist of the syntax.&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Thu, 07 Sep 2006 08:51:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/informix-moving-a-file/m-p/3858419#M778005</guid>
      <dc:creator>Jonathan Fife</dc:creator>
      <dc:date>2006-09-07T08:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Informix- moving a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/informix-moving-a-file/m-p/3858420#M778006</link>
      <description>Krista,&lt;BR /&gt;for 4gl example of running commands please see:&lt;BR /&gt;&lt;A href="http://aubit4gl.sourceforge.net/aubit4gldoc/manual/html/4GLcoding.html#Reading/Writing%20Outside%204GL" target="_blank"&gt;http://aubit4gl.sourceforge.net/aubit4gldoc/manual/html/4GLcoding.html#Reading/Writing%20Outside%204GL&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Section&lt;BR /&gt;"C Function Calls and "RUN" statements"</description>
      <pubDate>Thu, 07 Sep 2006 09:03:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/informix-moving-a-file/m-p/3858420#M778006</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-09-07T09:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Informix- moving a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/informix-moving-a-file/m-p/3858421#M778007</link>
      <description>Thanks to all for your help!</description>
      <pubDate>Thu, 07 Sep 2006 10:47:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/informix-moving-a-file/m-p/3858421#M778007</guid>
      <dc:creator>Krista A</dc:creator>
      <dc:date>2006-09-07T10:47:53Z</dc:date>
    </item>
  </channel>
</rss>

