<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en-us" xml:lang="en-us"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="security" content="public" /> <meta name="Robots" content="index,follow" /> <meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' /> <meta name="DC.Type" content="reference" /> <meta name="DC.Title" content="Run a program with embedded SQL" /> <meta name="abstract" content="Running a host language program with embedded SQL statements, after the precompile and compile have been successfully done, is the same as running any host program." /> <meta name="description" content="Running a host language program with embedded SQL statements, after the precompile and compile have been successfully done, is the same as running any host program." /> <meta name="DC.subject" content="running, program with embedded SQL, instruction, program, running with embedded SQL, embedded SQL, running a program with, programs, new release, considerations" /> <meta name="keywords" content="running, program with embedded SQL, instruction, program, running with embedded SQL, embedded SQL, running a program with, programs, new release, considerations" /> <meta name="DC.Relation" scheme="URI" content="rzajppreprog.htm" /> <meta name="DC.Relation" scheme="URI" content="rzajprunningddm.htm" /> <meta name="DC.Relation" scheme="URI" content="rzajprunningoverride.htm" /> <meta name="DC.Relation" scheme="URI" content="rzajprunningretcode.htm" /> <meta name="DC.Relation" scheme="URI" content="../rbam6/rbam6clmain.htm" /> <meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" /> <meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" /> <meta name="DC.Format" content="XHTML" /> <meta name="DC.Identifier" content="rzajprunningpgm" /> <meta name="DC.Language" content="en-us" /> <!-- All rights reserved. Licensed Materials Property of IBM --> <!-- US Government Users Restricted Rights --> <!-- Use, duplication or disclosure restricted by --> <!-- GSA ADP Schedule Contract with IBM Corp. --> <link rel="stylesheet" type="text/css" href="./ibmdita.css" /> <link rel="stylesheet" type="text/css" href="./ic.css" /> <title>Run a program with embedded SQL</title> </head> <body id="rzajprunningpgm"><a name="rzajprunningpgm"><!-- --></a> <!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script> <h1 class="topictitle1">Run a program with embedded SQL</h1> <div><p>Running a host language program with embedded SQL statements, after the precompile and compile have been successfully done, is the same as running any host program.</p> <div class="section"><p>Enter the following CALL statement:</p> <pre>CALL pgm-name</pre> <p>on the system command line. </p> </div> <div class="section"> <div class="note"><span class="notetitle">Note:</span> After installing a new release, users may encounter message CPF2218 in QHST using any Structured Query Language (SQL) program if the user does not have *CHANGE authority to the program. Once a user with *CHANGE authority calls the program, the access plan is updated and the message will be issued.</div> </div> </div> <div> <ul class="ullinks"> <li class="ulchildlink"><strong><a href="rzajprunningddm.htm">Run a program with embedded SQL: i5/OS DDM considerations</a></strong><br /> SQL does not support remote file access through DDM (distributed data management) files. SQL does support remote access through DRDA<sup>®</sup> (Distributed Relational Database Architecture™).</li> <li class="ulchildlink"><strong><a href="rzajprunningoverride.htm">Run a program with embedded SQL: Override considerations</a></strong><br /> You can use overrides (specified by the <span class="cmdname">OVRDBF</span> command) to direct a reference to a different table or view or to change certain operational characteristics of the program or SQL Package.</li> <li class="ulchildlink"><strong><a href="rzajprunningretcode.htm">Run a program with embedded SQL: SQL return codes</a></strong><br /> An SQL return code is sent by the database manager after the completion of each SQL statement.</li> </ul> <div class="familylinks"> <div class="parentlink"><strong>Parent topic:</strong> <a href="rzajppreprog.htm" title="This topic describes some of the tasks for preparing and running an application program.">Prepare and run a program with SQL statements</a></div> </div> <div class="relinfo"><strong>Related information</strong><br /> <div><a href="../rbam6/rbam6clmain.htm">CL programming</a></div> </div> </div> </body> </html>