z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example: Using the iconv shell utility with MBCS data

z/OS UNIX System Services User's Guide
SA23-2279-00

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):

  1. 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"
  2. Change to the directory that the file mbcsdata is in:
    cd /tmp/usr3
  3. Use iconv to convert the data and put it into the output file dbcsdata:
    iconv -f IBM-932 -t IBM-939 mbcsdata > dbcsdata

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014