Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

Buffer-management built-in functions

The buffer-management built-in functions operate on a "buffer", which is an area of storage specified by an address and a number of bytes. The PLIFILL, PLIMOVE and PLIOVER built-in subroutines are also useful in managing buffers.Table 47 lists the buffer-management built-in functions.

Table 47. Buffer-management built-in functions
Function Description
COMPARE Compares two buffers
HEXIMAGE Returns a character string that is the hex representation of a buffer
MEMCONVERT Converts the data in a source buffer from the specified source codepage to a a specified target codepage, stores the result in a target buffer, and returns an unscaled REAL FIXED BINARY value specifying the number of bytes written to the target buffer.
MEMINDEX Finds the location of one string or buffer within a buffer
MEMSEARCH Searches for the first occurrence of any one of the elements of a string within a buffer
MEMSEARCHR Searches for the first occurrence of any one of the elements of a string within a buffer, but the search starts from the right
MEMVERIFY Searches for the first nonoccurrence of any one of the elements of a string within a buffer
MEMVERIFYR Searches for the first occurrence of any one of the elements of a string within a buffer, but the search starts from the right
XMLCHAR Writes XML corresponding to a structure to a buffer

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)