If you've specified a CCSID for the target file (with STMFCCSID), and it
differs from the existing file's CCSID I think you get the error he is
getting. MBROPT(REPLACE) doesn't correct that. What I suggested was to
remove the STMFCCSID as a workaround if the file already exists, and the
codepage is not PCASCII. The alternative might be to figure out what the
target file's CCSID is, and use that. When I tried that a few days ago, I
had one file that was 65535, and the CPYTOIMPF didn't allow specifying
that, so I had to resort to removing the parm entirely in my program.
From: Vernon Hamberg <vhamberg@xxxxxxxxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 12/10/2015 03:54 PM
Subject: Re: ASCII DELIMITED TEXT FILES
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
I just tried this on 7.1, MBROPT(REPLACE) takes care of this - the
contents are replaced.
An issue to watch out for is that you will always get the same CCSID on
the file, once it's created.
Not an issue here, right?
On 12/10/2015 2:36 PM, Luis Rodriguez wrote:
Make sure that your stream file (STMF) does NOT exists before running the
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives