On Thu, 3 Feb 2022 07:47:46 -0600, John McKown wrote:

>On Thu, Feb 3, 2022 at 5:41 AM Colin Paice  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.
>>
>"    ... 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.
> 
No need for temp files:
    527 $ cat compascii
    #! /bin/sh -x
    CCSID=IBM-1047
    iconv -f iso8859-1 -t $CCSID "$1" | (
        iconv -f iso8859-1 -t $CCSID "$2" | diff /dev/fd/0 /dev/fd/3 ) 3<&0
528 $ 

It might be possible to use BPXWDYN to allocate OLD and NEW for ISRSUPC
to file descriptor files.  In my (long ago) experience, ISRSUPC accepted UNIX
files for OLD and NEW, but not for DELTA.

-- 
gil

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

Reply via email to