<?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: call AS400 program in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/call-AS400-program/m-p/146166#M24763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to create a procedure using the 'create procedure' instruction in sq session on AS/400&lt;/P&gt;&lt;P&gt;you can call the procedure with the sql 'Call' instruction&lt;/P&gt;&lt;P&gt;also make sure your odbc connection alows running procedures and has th enecessary libraries in the library list&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Aug 2011 12:32:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-08-22T12:32:03Z</dc:date>
    <item>
      <title>call AS400 program</title>
      <link>https://community.qlik.com/t5/QlikView/call-AS400-program/m-p/146160#M24757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV dir="ltr" id="result_box" style="text-align: left;"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I need to call an AS400 pgm by using a macro?&lt;BR /&gt;&lt;BR /&gt;someone knows tell me what are the commands?&lt;BR /&gt;&lt;BR /&gt;This is an example I made:&lt;BR /&gt;&lt;BR /&gt;sub ChiamoPgmAS&lt;BR /&gt;AS400Pgm = "((CALL PGM (MKWILLIAM \ DWFM41P.CLP) Parma ('2009010120091231')}}"&lt;BR /&gt;end sub&lt;BR /&gt;&lt;BR /&gt;but does not work ...&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 17:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/call-AS400-program/m-p/146160#M24757</guid>
      <dc:creator />
      <dc:date>2009-06-08T17:33:36Z</dc:date>
    </item>
    <item>
      <title>call AS400 program</title>
      <link>https://community.qlik.com/t5/QlikView/call-AS400-program/m-p/146161#M24758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have the ODBC connection?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 17:50:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/call-AS400-program/m-p/146161#M24758</guid>
      <dc:creator>johnan</dc:creator>
      <dc:date>2009-06-08T17:50:54Z</dc:date>
    </item>
    <item>
      <title>call AS400 program</title>
      <link>https://community.qlik.com/t5/QlikView/call-AS400-program/m-p/146162#M24759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV dir="ltr"&gt;Yes,&lt;BR /&gt;&lt;BR /&gt;in the script I have already reported a specific sql file as400 ...&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;I just need to run a pgm on as400 always ...&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV dir="ltr"&gt;I thought using a macro ...&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 18:37:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/call-AS400-program/m-p/146162#M24759</guid>
      <dc:creator />
      <dc:date>2009-06-08T18:37:42Z</dc:date>
    </item>
    <item>
      <title>call AS400 program</title>
      <link>https://community.qlik.com/t5/QlikView/call-AS400-program/m-p/146163#M24760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use the API. ActiveX-Control of the Programmers Toolkit.&lt;/P&gt;&lt;P&gt;Take a look here:&lt;/P&gt;&lt;P&gt;http://www-03.ibm.com/systems/i/software/access/windows/toolkit/remote_command.html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 18:52:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/call-AS400-program/m-p/146163#M24760</guid>
      <dc:creator />
      <dc:date>2009-06-08T18:52:42Z</dc:date>
    </item>
    <item>
      <title>call AS400 program</title>
      <link>https://community.qlik.com/t5/QlikView/call-AS400-program/m-p/146164#M24761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV dir="ltr" id="result_box" style="text-align:left;"&gt;unfortunately the download site ibm goes wrong ...&lt;BR /&gt;&lt;BR /&gt;try later ...&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 20:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/call-AS400-program/m-p/146164#M24761</guid>
      <dc:creator />
      <dc:date>2009-06-08T20:22:51Z</dc:date>
    </item>
    <item>
      <title>call AS400 program</title>
      <link>https://community.qlik.com/t5/QlikView/call-AS400-program/m-p/146165#M24762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I think you need to create a procedure using the 'create procedure' instruction in sq session on AS/400&lt;/P&gt;&lt;P&gt;you can call the procedure with the sql 'Call' instruction&lt;/P&gt;&lt;P&gt;also make sure your odbc connection alows running procedures and has th enecessary libraries in the library list&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 12:30:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/call-AS400-program/m-p/146165#M24762</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-22T12:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: call AS400 program</title>
      <link>https://community.qlik.com/t5/QlikView/call-AS400-program/m-p/146166#M24763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need to create a procedure using the 'create procedure' instruction in sq session on AS/400&lt;/P&gt;&lt;P&gt;you can call the procedure with the sql 'Call' instruction&lt;/P&gt;&lt;P&gt;also make sure your odbc connection alows running procedures and has th enecessary libraries in the library list&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 12:32:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/call-AS400-program/m-p/146166#M24763</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-22T12:32:03Z</dc:date>
    </item>
    <item>
      <title>call AS400 program</title>
      <link>https://community.qlik.com/t5/QlikView/call-AS400-program/m-p/146167#M24764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best way is create a STORED PROCEDURE on ISeries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Iseries there are two differents type of procedures: &lt;/P&gt;&lt;P&gt;"SQL stored procedure" and "External stored procedure".&lt;/P&gt;&lt;P&gt;An Sql stored procedure is vincolate at SQL&lt;/P&gt;&lt;P&gt;with External procedure you can call an external program on Iseries (RPGLE, CL, C , COBOL.....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are two way to create a procedure: &lt;/P&gt;&lt;P&gt;1) in a SQL session on Iseries ( IBM manual "DB2 for i SQL Reference"﻿﻿&lt;/P&gt;&lt;P&gt;I.e.&lt;/P&gt;&lt;P&gt;Create procedure procedure_name &lt;/P&gt;&lt;P&gt;(in field1 char(5), out field2 decimal(3))&lt;/P&gt;&lt;P&gt;language sql reads sql data&lt;/P&gt;&lt;P&gt;seletct max(qta) from pfile_name where fieldx=field1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) on Windows program bar "IBM System I Access for Windows" and then "System I Navigator".&lt;/P&gt;&lt;P&gt;In System I Navigator open your Iseries tree Database/library/Procedure.&lt;/P&gt;&lt;P&gt;Here you can create a procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a procedure you can define IN, OUT and INOUT parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple example without parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Iseries create a CL program lib/procedure_name&lt;/P&gt;&lt;P&gt;es:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PGM&lt;/P&gt;&lt;P&gt;CLRPFM FILE(LIB/FILENAME)&lt;/P&gt;&lt;P&gt;ENDPGM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On SQL session on Iseries &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CRATE PROCEDURE lib/procedure_name&lt;/P&gt;&lt;P&gt;LANGUAGE CL&lt;/P&gt;&lt;P&gt;PARAMETER STYLE GENERAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this create in lib the procedure procedure_name that start program with the same name.&lt;/P&gt;&lt;P&gt;So in&amp;nbsp; lib there are the procedure and the program with the same name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Qlik script you create the ODBC string to connect to iseries and the command to call the procedure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONNECT TO [Provider..................&lt;/P&gt;&lt;P&gt;sql&lt;/P&gt;&lt;P&gt;call iseries.procedure_name;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 10:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/call-AS400-program/m-p/146167#M24764</guid>
      <dc:creator>jpengiu</dc:creator>
      <dc:date>2011-12-02T10:53:53Z</dc:date>
    </item>
    <item>
      <title>call AS400 program</title>
      <link>https://community.qlik.com/t5/QlikView/call-AS400-program/m-p/146168#M24765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; When you call a&amp;nbsp; iSeries program , the list library used is the ODBC driver library list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On configuration ODBC system i Access for Windows there is Server/Library list&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 11:41:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/call-AS400-program/m-p/146168#M24765</guid>
      <dc:creator>jpengiu</dc:creator>
      <dc:date>2011-12-02T11:41:23Z</dc:date>
    </item>
  </channel>
</rss>

