AS |
![]() ![]() ![]() |
The AS keyword is a field qualifier which defines a synonym for a field and any qualifying information.
Format
field.name {field.qualifier} AS synonym
where
The AS keyword creates a synonym for field.name together with any field.qualifier. It is normally only used in conjunction with a field.qualifier or to name an evaluated expression.
Example
LIST INVOICES EVAL "SUM(RECEIVED)" AS AMT BY.DSND AMT
This command processes records from the INVOICES file and reports the total of the multi-valued RECEIVED field . The report is displayed in descending order of total received amount. The AS keyword is used to give the synonym AMT to the evaluated sum so that it can be referred to again in the sort clause after the BY.DSND keyword without full expansion.
See also: |