ABSTRACT

GPSS/H has several powerful Blocks that can be used to search several entities and test their attributes for a specific condition when a transaction enters the Block. When the condition is met, a record of this is placed in one of the transaction’s parameters. Such scans are common in real-life situations. A mining truck approaches several shovels and will check for the one with the shortest queue of waiting trucks. The Block to do this scan and test at the same time is the SELECT Block. When a transaction enters this Block, a scan of selected entity members is made. When one of these scanned members is found that satisfies some stated condition, the scan is terminated. Examples of where such a Block might be used to model real-life situations are as follows:

1. A person enters a bank that has five tellers each with a queue of people waiting for service. The person will look at each queue and determine which is the shortest and then join that one.