$ListCpy: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 2: Line 2:
<span class="pageSubtitle"><section begin="desc" />Copy $list<section end="desc" /></span>
<span class="pageSubtitle"><section begin="desc" />Copy $list<section end="desc" /></span>


<p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $ListCpy function is [[to be entered]].</p>
<p class="warning">Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $ListCpy function is the [[Copy (Stringlist function)]].</p>


This function copies an entire $list, creating a new $list. The input $list can be created by any of the $list creating functions.  
This function copies an entire $list, creating a new $list. The input $list can be created by any of the $list creating functions.  
Line 15: Line 15:
</p>
</p>
<p class="caption">%RESULT is set to the identifier of the output $list.</p>
<p class="caption">%RESULT is set to the identifier of the output $list.</p>
<p class="code">  
<p class="code">  
  -3 - No room in CCATEMP
  -3 - No room in CCATEMP
Line 22: Line 23:
<p class="caption">$ListCpy Error Codes
<p class="caption">$ListCpy Error Codes
</p>
</p>


All invocations of a particular call to $ListCpy will always return the same $list identifier. Each time that call is executed, if the function is successful then any previous $list created by that call is deleted, and a new list is created.  
All invocations of a particular call to $ListCpy will always return the same $list identifier. Each time that call is executed, if the function is successful then any previous $list created by that call is deleted, and a new list is created.  
Line 39: Line 39:
<li>[[Japanese functions]]</li>
<li>[[Japanese functions]]</li>
<li>[[Sir2000 Field Migration Facility]]</li>
<li>[[Sir2000 Field Migration Facility]]</li>
</ul>
</ul>
   
   
Line 45: Line 44:
<p class="caption">Products authorizing $ListCpy
<p class="caption">Products authorizing $ListCpy
</p>
</p>


[[Category:$Functions|$ListCpy]]
[[Category:$Functions|$ListCpy]]

Revision as of 13:52, 9 February 2011

<section begin="desc" />Copy $list<section end="desc" />

Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $ListCpy function is the Copy (Stringlist function).

This function copies an entire $list, creating a new $list. The input $list can be created by any of the $list creating functions.

The $ListCpy function accepts one argument and returns a numeric result.

The first argument is the identifier of the input $list. This is a required argument.

Syntax

<section begin="syntax" /> %RESULT = $ListCpy(list_identifier) <section end="syntax" />

$ListCpy Function

%RESULT is set to the identifier of the output $list.

-3 - No room in CCATEMP -5 - Required argument not specified -6 - $List identifier invalid

$ListCpy Error Codes

All invocations of a particular call to $ListCpy will always return the same $list identifier. Each time that call is executed, if the function is successful then any previous $list created by that call is deleted, and a new list is created.

$LISTCPY's output $list identifier is associated with the same image as the input $list (as associated with $ListImg).

$ListCpy does a page for page copy of the input $list. As such, it is very efficient (more efficient than $List_Copy_Items) but it is also useless for compressing a list that has become sparse as the result of heavy $LISTINS, $LISTREP, $ListAdj and $ListRem activity. $ListRep and $ListAdj will only cause a $list to become sparse if $list items are replaced with larger $list items or increased in size. For list compression use $List_Copy_Items which is documented in :hdref refid=listcit..

Products authorizing $ListCpy