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
Was this topic helpful?
Document Information
Modified date:
03 September 2021
UID
isg3T1020027