Example: Using the iconv shell utility with MBCS data
In this example, the PDSE member MBCSDATA is moved into the file system and then converted to code page IBM-939 from code page IBM-932 (a multibyte ASCII code page):
- Run the OPUT command from the shell, using the double quotation
marks to prevent the shell from processing it:
tso oput "'usr3.data(mbcsdata)' '/tmp/usr3/mbcsdata' bin"
- Change to the directory that the file mbcsdata is in:
cd /tmp/usr3
- Use iconv to convert the data and put
it into the output file dbcsdata:
iconv -f IBM-932 -t IBM-939 mbcsdata > dbcsdata