From m204wiki
Jump to navigation Jump to search

The $GETP function returns the page number currently on the user's terminal or on the output data set specified by a USE command. When the current output device is the normal device (no USE command is in effect), the value returned by $GETP matches the current value of the OUTPNO parameter, which indicates the current output page number. Otherwise, the value returned by $GETP is the current page number on the USE data set. $GETP takes no arguments.