FN_E$CLZ - Convert leading zeros to blanks
Inclusion in RPG source
- C /COPY E$LIB/SRC(ILE),FN_E$CLZ
Invocation
- EXSR E$CLZ
Input Parameters
- @CLZ (a80)
- Field in which a numeric value must be stored using the MOVE statement, prior to the call to E$CLZ.
Output Parameters
- @CLZ (a80)
- Field in which the formatted value is stored after processing by E$CLZ.
What it does
- Converts all leading zeroes to blanks until a non-zero character is encountered.
Examples
-
* C MOVE 122 @CLZ P '000000000122' C EXSR E$CLZ C MOVE @CLZ #FIELD P ' 122' *
Go to download page