The Print Object (PRTOBJ) function defines an embedded report that prints the records from a specified access path at any point within a PRTFIL function. You also can embed PRTOBJ functions within other PRTOBJ functions.
A PRTOBJ function is an internal function, much like the EXCINTFUN, RTVOBJ, CHGOBJ, or (DLTOBJ) functions, in that the high level language source code generated to implement the function is included as source code within the Print File function that calls it.
You can attach a PRTOBJ function to a Retrieval (RTV), a Resequence (RSQ), or a Query (QRY) access path.
Most considerations that affect PRTFIL also affect PRTOBJ.
Device considerations:
Default logic:
The following table shows the parameters available.
|
Parameters |
Usage |
Role |
Default |
Option |
|---|---|---|---|---|
|
Return code |
I |
RST/POS |
- |
O |
|
Other fields |
Any |
-/MAP |
- |
O |
There are no function options available for this function.
The following is an example of a Print Object.

| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |