Copyright © Cloud Software Group, Inc. All Rights Reserved |
occ_num = CURSOROCC#(screen)
A character string and specifies the name of the screen. Its syntax is C (fixed-length character string), with length 16.
• If the screen table is populated with occurrences and the cursor is positioned on a title row, CURSOROCC# returns an occurrence number of 1. If the screen table is not populated with occurrences and the cursor is positioned on a title row, CURSOROCC# returns an occurrence number of 0.
There are differences between where z/OS and Open Systems applications allow the cursor to be positioned.The following rule fills the example screen with data from the example table, displays it, determines the number of the occurrence within the table where the cursor is positioned, and prints it to the message log:
SMYTHE 80000
Copyright © Cloud Software Group, Inc. All Rights Reserved |