Skip to main content

Selected

Syntax​

Selected field_name

Parameters​

  • field_name: The field to modify for entries that match the Select criteria.
  • Selected Message: Specifies a custom message or value to place in the field. If omitted, the default is "X".
  • Selected Value: Specifies another field from which to copy the value.

Description​

Places a message or another field's value into a specified field for all entries that match the preceding Select criteria.

Remarks​

Processing of the listing file normally stops after this command is executed. Use the Continue command to allow processing to proceed.

warning

This should be used with caution; if the rest of the listing file depends on the select, it is not advisable to use Continue.

Examples​

To change the value of the CLASS field from "L" to "Z":

SELECT CLASS
= L
Selected CLASS
Selected Message Z

To copy a first name to a blank nickname field:

Select NickName
EQ
Selected NickName
Selected Value First Name