On Tue, 8 Jan 2013 11:55:18 -0600, John McKown wrote:
>How about cheating? I mean, _really_ cheating? I know that I like to.
>You can try the following from a z/OS UNIX shell. I don't use
>BPXBATCH, but I think you can put in multiple lines via STDPARM.
>
>mkdir ~/diff #create a new directory, just for fun
>cd ~/diff #go into it
>mkfifo file1 #make a named pipe for input #1
>mkfifo file2 #and another for input #2
>mkfifo output #and another for output
>cp "//'zos.file.one'" file1 &
>cp "//'zos.file.two'" file2 &
>diff file1 file2 >output &
>cp output "//'existing.output.file.with.correct.dcb'" #copy output to z/OS dsn
>cd ~ #back to ${HOME}
>rm -rf diff #get rid of junk files subdirectory
>
Well, I think I can way abbreviate this to:
#! /bin/sh
cp "$1" /dev/fd/1 |
{ cp "$2" /dev/fd/1 | /bin/diff /dev/fd/3 - ; } 3<&0 |
cp /dev/fd/0 "//'existing.output.file.with.correct.dcb'"
(Partly tested, except for output redirection.)
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN