IBM Support

Can ICONV work with MVS datasets

Question & Answer


Question

can ICONV work with MVS datasets

Answer


Hello, we have a problem with currently using AOPBATCH where it is
truncating a file. We've been told we might be able to use BPXBATCH
under our z/os mainframe in unix system.

Assistance is needed with both the BPXBATCH and the iconv facility.

IBM Response:

The OMVS iconv command needs to work with OMVS files - not MVS datasets
I'm afraid.
You can move the input MVS dataset to a OMVS file and then use BPXBATCH
to run a command like
// PARM='/iconv -f IBM-037 -t UTF-8 /path/to/input > /path/to/output'
You can then move the OMVS output file to an MVS dataset.
In BPXBATCH, the //STDIN DD must point to an OMVS path.
BPXBATCH is described in the USS Commands and Reference in section
BPXBATR.1 BPXBATCH
found at URL
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/BPXZA5B0/BPXBATR.1
The iconv command is in that same manual at
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/BPXZA5B0/ICONV

[{"Product":{"code":"SWG90","label":"z\/OS"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"5695SCPX2 - Z\/OS UNIX SYSTEM SERVICES SHELL AND UTILITIES","Platform":[{"code":"","label":"MVS\/ESA"},{"code":"","label":"OS\/390"}],"Version":"1.8;1.9","Edition":"","Line of Business":{"code":"LOB56","label":"Z HW"}}]

Document Information

Modified date:
03 September 2021

UID

isg3T1020027