Joined: 10 May 2007 Posts: 2230 Location: Hampshire, UK
You cannot mix EBCDIC and ASCII in the same data set. It is either one or the other - on the mainframe usually EBCDIC.
As you have a VBS data set changing the first 4 bytes from binary to someother datatype (zoned decimal perhaps) means that your data set is no longer VBS as the VBS information has been lost and your data length has changed as ZD takes more bytes than binary.
The thing is: why do you want to do any of this in the first place?
Joined: 06 Jun 2008 Posts: 8490 Location: Dubuque, Iowa, USA
EDCICONV invokes the Unix System Services program iconv to convert data. As such, you convert the entire data set / file -- you cannot pick and choose columns to convert. You'll need to write a program in the language of your choice to convert the binary (and packed decimal, if any) columns to zoned decimal before using EDCICONV.
UTF-8 is a variable width encoding; mainframes generally use ISO8859-1 for conversions into / from ASCII. You should read the manual on iconv as it has lots of good information about conversions.