Rules for browsing
There are some rules you should know about browsing resource definitions.
- Your position in a browse is associated with your task, so that it is preserved across LINK and XCTL commands. Programs that run as part of a program list table (PLT) during CICS initialization or termination run under a single task. Consequently, they should terminate explicitly any browse they begin, in order not to conflict with other programs in the same PLT.
- A task can browse more than one type of resource at the same time, but can have only one browse in progress for a particular resource type.
- A SYNCPOINT command does not end a browse or affect your position in it.
- Resource definitions are not locked during a browse, and another task may change the definitions while you are inquiring on them.
- You should always end a resource browse explicitly, rather than allowing end-of-task processing to do so implicitly, because a browse holds control blocks that other tasks may require for browsing.
- INQUIRE NEXT commands usually do not cause a task switch. Therefore, a task browsing a long list of resources may exceed the runaway task interval without giving up control, causing CICS to abend it with an AICA code. If this occurs, you need to intersperse a SUSPEND command periodically among your INQUIRE NEXTs.
- During a browse in a task for which resource security checking is in effect, CICS returns only those definitions that the user is authorized to see. The others are skipped without any indication.