101 lines
5.2 KiB
HTML
101 lines
5.2 KiB
HTML
<?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="Accessing and updating data for iSeries Objects" />
|
|
<meta name="abstract" content="A list object for a list of iSeries spool files is created. After setting the desired filter criteria, the list is opened. A parameter object is created which will be used to change the output priority for each spooled file in the list." />
|
|
<meta name="description" content="A list object for a list of iSeries spool files is created. After setting the desired filter criteria, the list is opened. A parameter object is created which will be used to change the output priority for each spooled file in the list." />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiksoatypuse.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzaiksoaaccessupdatesampl.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1999, 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1999, 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="soaaccessupdatedata" />
|
|
<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>Accessing and updating data for iSeries Objects</title>
|
|
</head>
|
|
<body id="soaaccessupdatedata"><a name="soaaccessupdatedata"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Accessing and updating data for iSeries Objects</h1>
|
|
<div><p>A list object for a list of iSeries™ spool files is created. After
|
|
setting the desired filter criteria, the list is opened. A parameter object
|
|
is created which will be used to change the output priority for each spooled
|
|
file in the list.</p>
|
|
<div class="section"><p>After storing the desired output priority value of "9" in the
|
|
parameter object, a loop is entered. Each object in the list is examined
|
|
in turn, and if a spooled file is found to have more than 10 pages then its
|
|
output priority is changed.</p>
|
|
</div>
|
|
<div class="section"><p>In this example, all spooled files for device P3812 that have
|
|
10 or more pages have their output priority changed to 9 so that they will
|
|
not print before smaller files.</p>
|
|
</div>
|
|
<div class="section"><h4 class="sectiontitle">Accessing and updating data for iSeries objects (Summary)</h4><pre>(R) CWBSO_CreateListHandle Create a list of iSeries objects
|
|
|
|
(O) CWBSO_SetListFilter Set list filter criteria
|
|
|
|
(R) CWBSO_CreateErrorHandle Create an error object
|
|
|
|
(R) CWBSO_OpenList Open the list (automatically starts
|
|
a conversation with the iSeries server)
|
|
|
|
(O) CWBSO_DisplayErrMsg Display error message if error occurred
|
|
|
|
(R) CWBSO_CreateParmObjHandle Create a parameter object
|
|
|
|
(R) CWBSO_SetParameter Set new value for object attribute
|
|
or attributes
|
|
|
|
(R) CWBSO_WaitForObj Wait until first object is available
|
|
|
|
. . . Loop through all objects
|
|
.
|
|
. (R) CWBSO_GetObjHandle Get an object from the list
|
|
.
|
|
. (R) CWBSO_GetObjAttr Read data for a particular attribute
|
|
.
|
|
. (R) CWBSO_SetObjAttr Update an attribute on the iSeries server
|
|
.
|
|
. (R) CWBSO_DeleteObjHandle Clean up object handle
|
|
.
|
|
. (R) CWBSO_WaitForObj Wait for next object in list
|
|
.
|
|
..............
|
|
|
|
|
|
(R) CWBSO_DeleteParmObjHandle Delete the parameter object
|
|
|
|
(O) CWBSO_CloseList Close the list
|
|
|
|
(R) CWBSO_DeleteErrorHandle Delete error object
|
|
|
|
(R) CWBSO_DeleteListHandle Delete list (automatically ends the
|
|
iSeries conversation)</pre>
|
|
</div>
|
|
<div class="section"> <div class="note"><span class="notetitle">Note:</span> By using the code examples, you agree to the terms of the <a href="codedisclaimer.htm">Code license and disclaimer information</a>.</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="rzaiksoaaccessupdatesampl.htm">Sample program: Accessing and updating data for iSeries objects</a></strong><br />
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaiksoatypuse.htm" title="Three summaries for and examples of System Object Access API usage are provided below.">Typical use of System Object Access APIs for iSeries Access for Windows</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |