ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzam4_5.4.0.1/rzam4chgmlbwithapi.htm

134 lines
6.7 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="task" />
<meta name="DC.Title" content="Control tape library resources with APIs" />
<meta name="abstract" content="Use the QTARJMA and QTACJMA APIs to retrieve and to change the tape library attributes for a specific job." />
<meta name="description" content="Use the QTARJMA and QTACJMA APIs to retrieve and to change the tape library attributes for a specific job." />
<meta name="DC.Relation" scheme="URI" content="rzam4mla.htm" />
<meta name="DC.Relation" scheme="URI" content="../apis/qtarjma.htm" />
<meta name="DC.Relation" scheme="URI" content="../apis/qtacjma.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2004, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2004, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzam4chgmlbwithapi" />
<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>Control tape library resources with APIs</title>
</head>
<body id="rzam4chgmlbwithapi"><a name="rzam4chgmlbwithapi"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Control tape library resources with APIs</h1>
<div><p>Use the QTARJMA and QTACJMA APIs to retrieve and to change the
tape library attributes for a specific job.</p>
<div class="section"><p>For more information about the fields for the APIs, see:</p>
<ul><li>Retrieve Job Media Library Attributes (QTARJMA) API</li>
<li>Change Job Media Library Attributes (QTACJMA) API</li>
</ul>
<p>Special attention to authority requirements is required when retrieving
and changing the resource allocation attributes. The following provides examples
of using both APIs.</p>
</div>
<ol><li class="stepexpand"><span>An application using the QTARJMA API retrieves information about
the tape library attributes for the current job where the user running the
job does not have *JOBCTL special authority. </span> <p><strong>Current library
attributes</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><thead align="left"><tr><th valign="top" id="d0e41">MLB name</th>
<th valign="top" id="d0e43">RSCALCPTY</th>
<th valign="top" id="d0e45">INLMNTWAIT</th>
<th valign="top" id="d0e47">EOVMNTWAIT</th>
</tr>
</thead>
<tbody><tr><td valign="top" headers="d0e41 ">*DEFAULT</td>
<td valign="top" headers="d0e43 ">*DEV</td>
<td valign="top" headers="d0e45 ">*DEV</td>
<td valign="top" headers="d0e47 ">*DEV</td>
</tr>
</tbody>
</table>
</div>
</li>
<li class="stepexpand"><span>The application then uses the QTACJMA API to change the initial
mount wait time (INLMNTWAIT) and the end of volume mount wait time (EOVMNTWAIT).</span> <p><strong>The application changes the library attributes</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><thead align="left"><tr><th valign="top" id="d0e75">MLB name</th>
<th valign="top" id="d0e77">RSCALCPTY</th>
<th valign="top" id="d0e79">INLMNTWAIT</th>
<th valign="top" id="d0e81">EOVMNTWAIT</th>
</tr>
</thead>
<tbody><tr><td valign="top" headers="d0e75 ">*DEFAULT</td>
<td valign="top" headers="d0e77 ">*DEV</td>
<td valign="top" headers="d0e79 ">*IMMED</td>
<td valign="top" headers="d0e81 ">*NOMAX</td>
</tr>
</tbody>
</table>
</div>
</li>
<li class="stepexpand"><span>A system administrator with *JOBCTL special authority uses the
CHGJOBMLBA command to change the resource allocation priority (RSCALCPTY),
initial mount wait time, and the end of volume mount wait time.</span> <p><strong>System
administrator changes attributes</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><thead align="left"><tr><th valign="top" id="d0e109">MLB name</th>
<th valign="top" id="d0e111">RSCALCPTY</th>
<th valign="top" id="d0e113">INLMNTWAIT</th>
<th valign="top" id="d0e115">EOVMNTWAIT</th>
</tr>
</thead>
<tbody><tr><td valign="top" headers="d0e109 ">*DEFAULT</td>
<td valign="top" headers="d0e111 ">50</td>
<td valign="top" headers="d0e113 ">*IMMED</td>
<td valign="top" headers="d0e115 ">500</td>
</tr>
</tbody>
</table>
</div>
</li>
<li class="stepexpand"><span>The application tries to use the QTACJMA API to restore the tape
library attributes it retrieved earlier by using the QTACJMA API *REPLACE
option. However, this function fails with an error message of CPF67B4 because
the user does not have *JOBCTL special authority. None of the attributes are
changed.</span> <p><strong>Original application fails to restore attributes</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><thead align="left"><tr><th valign="top" id="d0e143">MLB name</th>
<th valign="top" id="d0e145">RSCALCPTY</th>
<th valign="top" id="d0e147">INLMNTWAIT</th>
<th valign="top" id="d0e149">EOVMNTWAIT</th>
</tr>
</thead>
<tbody><tr><td valign="top" headers="d0e143 ">*DEFAULT</td>
<td valign="top" headers="d0e145 ">50</td>
<td valign="top" headers="d0e147 ">*IMMED</td>
<td valign="top" headers="d0e149 ">500</td>
</tr>
</tbody>
</table>
</div>
</li>
</ol>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzam4mla.htm" title="Depending on your business environment you might want to control the use of tape resources to allow important jobs to finish quickly. i5/OS provides several features for this.">Control tape library resources using tape library attributes</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="../apis/qtarjma.htm">Retrieve Job Media Library Attributes (QTARJMA)</a></div>
<div><a href="../apis/qtacjma.htm">Change Job Media Library Attributes (QTACJMA)</a></div>
</div>
</div>
</body>
</html>