PADEDI is a previously undocumented environment variable, which pads numeric fields with leading zeros or alphanumeric fields with trailing spaces at runtime to ensure that data meets minimal field length requirements.
ECRTP also includes a -pe switch, which pads EDI data to minimum length in compliance maps. This switch is an optional replacement for the PADEDI environment variable.
In Windows, in Control Panel | System | Advanced | Environment Variables | System Variables, set the Variable Name to PADEDI. Set the Variable Value to Y.
In UNIX, open a shell and run the following commands relevant to your shell:
ksh:
set PADEDI=YES ; export PADEDI
sh:
set PADEDI=1 ; export PADEDI
csh:
setenv PADEDI 1
CR#297413
For more complete information about PADEDI, see “Padding EDI data to minimum length [EDI 4.2]”.