John,

There is an ISPF edit "compare" command.  Ive used to compare members and
datasets with no problems.
I had problems with editing a UNIX file and comparing with another UNIX
file when the files were ascii.
(So blank = x'20' not x'40').   You can tell UNIX which code page the file
has using the chtag -tc ...
and the files have ISO8559-1
I think the problem is the ispf compare command does not respect the file
tag, in the same way that the editor does.
Under the covers I think it invokes superc.

I managed it in the end using
iconv -f ISO8859-1 -t IBM-037 ascii_file  > ebcdic-file  on each file
then edited the file,and used compare.
then
iconv -f IBM_037  -t ISO8559-1 ebcdic  > ascii-file
Colin

On Thu, 3 Feb 2022 at 13:48, John McKown <[email protected]>
wrote:

> On Thu, Feb 3, 2022 at 5:41 AM Colin Paice <[email protected]> wrote:
>
> > I am having problems comparing two python files from OMVS.  I can edit
> them
> > both individually ( I can see the blanks are x'20' = ASCII blanks.
> > I cannot get compare to work.. it looks like compare cannot tell the
> second
> > file is ascii.
> > Is there an easy solution for this?
> > Colin
> >
> >
> I am a bit dense. By "from OMVS", do you mean in a UNIX file vs. a "legacy"
> dataset? Also, by "ispf compare", I guess you mean option 3.12 (SuperC) or
> 3.13 (SuperCE). I looked on a z/OS 2.5 system, but I didn't see any way to
> do a compare in ISPF using UNIX resident files.
>
> In any case, I doubt that any ISPF functions can process ASCII files,
> regardless of location. I think you'll need to convert them to EBCDIC.
>
> "easy" is relative. Personally, being a Linux user who likes to use a z/OS
> UNIX shell, I would use the UNIX "diff" command. I might be sufficient to
> "tag" the UNIX files as ASCII using the "chtag" UNIX command to tell
> the filesystem the file is ASCII (UTF-8 or whatever). If that doesn't work,
> it gets a bit more difficult, using iconv to do code conversion & temp
> files.
>
> IOW, I don't think there's an easy way.
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to