iconv utility

The iconv utility converts the characters from the input file from one coded character set (code set) definition to another code set definition, and writes the characters to the output file.

The iconv utility creates one character in the output file for each character in the input file, and does not perform padding or truncation.

When conversions are performed between single-byte code pages, the output files are the same length as the input files. When conversions are performed between double-byte code pages, the output files may be longer or shorter than the input files because the shift-out and shift-in characters may be added or removed. If you are using the iconv utility under the z/OS® shell, see z/OS UNIX System Services Command Reference for details on syntax and uses.

There are three standard library functions that can be used by any application to change the character set of data. These functions are iconv_open(), iconv(), and iconv_close(). For more information on the iconv utility, see z/OS XL C/C++ Programming Guide.