FN_E$CDSC - Condense City names
Inclusion in RPG source
- C /COPY E$LIB/SRC(ILE),FN_E$CDSC
C /COPY E$LIB/SRC(ILE),FN_E$ALL
Invocation
- EXSR E$CDSC
Input Parameters
- @CDSC (a65)
- Field in which a name of a city must be stored prior to the call to E$CDSC.
Output Parameters
- @CDSC (a65)
- Field in which the formatted city name is stored after processing by E$CDSC.
What it does
- Removes '-', '/' and ',' from the string, reduces white space to a single space-character, and concatenates all remaining characters into a new string.
Examples
-
* C MOVELCITY @CDSC 'AMSTERDAM / WEST' C EXSR E$CDSC C MOVEL@CDSC #FIELD 'AMSTERDAM WEST ' *
Go to download page