<?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="Example: CL program for creating objects and library for packaging a product" /> <meta name="abstract" content="The following CL program creates objects 1 through 11 and 15." /> <meta name="description" content="The following CL program creates objects 1 through 11 and 15." /> <meta name="DC.Relation" scheme="URI" content="ExTaskPackprog.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="expackcl" /> <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>Example: CL program for creating objects and library for packaging a product</title> </head> <body id="expackcl"><a name="expackcl"><!-- --></a> <!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script> <h1 class="topictitle1">Example: CL program for creating objects and library for packaging a product</h1> <div><p>The following CL program creates objects 1 through 11 and 15.</p> <div class="section"><pre>PGM /* Delete library and start from scratch */ DLTLIB ABC /* MRM Objects */ CRTLIB ABC CRTCLPGM ABC/ABCPGMMRM1 ABCDEV/QCLSRC + TEXT('MRM Preprocessing Program') CRTCLPGM ABC/ABCPGMMRM2 ABCDEV/QCLSRC + TEXT('MRM Postprocessing Program') CRTCLPGM ABC/ABCPGM ABCDEV/QCLSRC + TEXT('CPP for ABC command') /* MRI Objects */ CRTCLPGM ABC/ABCPGMMRI1 ABCDEV/QCLSRC + TEXT('MRI Preprocessing Program') CRTCLPGM ABC/ABCPGMMRI2 ABCDEV/QCLSRC + TEXT('MRI Postprocessing Program') CRTSRCPF ABC/QCLSRC TEXT('Source Physical File for ABC Product') CRTDSPF ABC/ABCDSPF ABCDEV/QDDSSRC + TEXT('Display File for ABC Product') CRTPF ABC/ABCPF ABCDEV/QDDSSRC + TEXT('Physical File for ABC Product') CRTMSGF ABC/ABCMSG TEXT('Message File') ADDMSGD ABC0001 ABC/ABCMSG MSG('ABC Product') CRTCMD ABC/ABC ABC/ABCPGM ABCDEV/QCMDSRC + TEXT('Command for ABC Product') CRTPNLGRP ABC/ABCPNLGRP ABCDEV/QPNLSRC + TEXT('Panel for ABC Command') /* The next program creates the product definitions, product loads, */ /* and gives all the objects associated with the product the correct*/ /* product information. It packages the product, which enables */ /* you to use the SAVLICPGM, RSTLICPGM, and DLTLICPGM commands. */ CRTRPGPGM ABCDEV/SFTWPRDEX ABCDEV/QRPGSRC /* <span class="uicontrol">(1)</span> <span class="uicontrol">(2)</span> <span class="uicontrol">(3)</span> <span class="uicontrol">(4)</span> */ CALL ABCDEV/SFTWPRDEX ENDPGM</pre> </div> </div> <div> <div class="familylinks"> <div class="parentlink"><strong>Parent topic:</strong> <a href="ExTaskPackprog.htm" title="You can define, create, distribute, and maintain your own product using APIs. These examples demonstrate how you can use the APIs to package a product similar to the way IBM packages products.">Examples: Packaging your own software products</a></div> </div> </div> </body> </html>