pc.o

Processing Code/Restore Processor, Releases: AP

Sorts values in ascending order.

Syntax

o o{;}attribute.number{;attribute.number...}

Description

sorts the values in the specified attribute(s) in ascending order. The values are sorted when the item is filed.

While this CAN be used in the 'correlative' attribute of an attribute-defining item, it causes the screen to refresh with each value added. To prevent this from occurring, it is advised that this processing code be placed on the 'correlative' attribute of the file-defining item using the format listed below.

1) Attribute-Defining Items:

Syntax: o

Where Used:
correlative: used here
input-conversion: aborts with illegal use message
output-conversion: aborts with illegal use message

Function:

After a value is entered, the screen is redisplayed with the value placed in ascending alphabetic (a-z) order.

The sort does NOT take place until a value is added to an attribute. If the processing code is added to an existing attribute, the attribute can be displayed and filed without the attribute getting sorted. If a value is added, the attribute is sorted.

2) File-Defining Items:

Syntax: o{;}attribute.number{;attribute.number...}

In file-defining items, the 'o' processing code may only be used in the 'correlative' attribute. The first semi-colon is optional.

Function:

When the item is filed, the values in the attribute(s) specified by 'attribute.number' is/are sorted and replaced in ascending alphabetic (a-z) order.

If an attribute is not already sorted, adding this processing code sorts the attribute the next time the item is filed.

See Also

Command Name Type Description
ue.1072 User Exit Sorts a dynamic array.
processing.codes Definition Overview of processing codes.
up.input-conversion.adi Processing Code Processing codes available from UP after input.
input-conversion Attribute Defining Item References attribute 14 of a dictionary.
conversion Definition Conversion codes are listed under 'processing codes'.
output-conversion Attribute Defining Item References attribute 14 of a dictionary.
up.output-conversion.adi Processing Code Processing codes available from UP at output time.
up.correlative.adi Processing Code Processing codes available from UP at pre-processsing time.
pc.ms Processing Code Mask sequence function.
pc Introductory

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.