- To check what your environment variables look like, you can issue:
printenv
It should show something like:
_BPX_TERMPATH=OMVS
PATH=/usr/lpp/java/J7.0/bin:.:/bin
SHELL=/bin/sh
COLUMNS=80
_=/bin/printenv
STEPLIB=GSK.SGSKLOAD:DB2.DB2810.SDSNEXIT:DB2.DB2810.SDSNLOAD:CEE.SCEERUN:CEE.SCE
ERUN2
LOGNAME=myacid
LIBPATH=/usr/lpp/java/J7.0/bin:/lib:/usr/lib:
TERM=dumb
HOME=/u/myacid
LINES=39
DSNAOINI=/cai/caldap/caldap.odbcini.xe52
JAVA_HOME=/usr/lpp/java/J7.0
TZ=UTC0
- You have to set the following variable to have your LDAP receiving a LDIF file in UTF-8 to be interpreted correctly.
You can issue:
export LC_ALL=Fr_FR.IBM-1147
- Afterward, you can issue LDAPSEARCH, LDAPMODIFY commands using with LDIF file in IBM-1147 environment.
- Else, the LDIF file won't be transfer to the LDAP in UTF-8 and unpredictable issue may occur.