Re: Can I run the DOS FC command from Rexx?
- From: Arthur T. <arthur@xxxxxxxxxxxxxx>
- Date: Tue, 03 Mar 2009 00:09:16 -0500
In Message-ID:<61bpq4dmcv5nqo8kjutf6s9v1igrod55u1@xxxxxxx>,
Three Lefts <spamtrap@xxxxxxxxxxxxxxxxx> wrote:
I tried to execute the DOS FC (file compare) command from a Rexx exec.
I keep getting a weird return code.
I tried
'FC /B' fid1 fid2
and
Address command 'FC /B' fid1 fid2
In both cases, Result is set to "READY:".
I would like to get a return code that indicates whether the two files
are identical at the bit level.
Here's a snippet from mine:
oldtrace = trace("O")
'fc "' || file1 || '" "' || file2 || '" > f:\diff'
exitcode = rc
trace oldtrace
if exitcode = "RC" | exitcode = 0 then
do
'type f:\diff'
exit 0
end
if exitcode < 2 then 'list f:\diff'
exit rc
--
Arthur T. - ar23hur "at" intergate "dot" com
Looking for a z/OS (IBM mainframe) systems programmer position
.
- Follow-Ups:
- Re: Can I run the DOS FC command from Rexx?
- From: Three Lefts
- Re: Can I run the DOS FC command from Rexx?
- References:
- Can I run the DOS FC command from Rexx?
- From: Three Lefts
- Can I run the DOS FC command from Rexx?
- Prev by Date: Re: Can I run the DOS FC command from Rexx?
- Next by Date: Re: Can I run the DOS FC command from Rexx?
- Previous by thread: Re: Can I run the DOS FC command from Rexx?
- Next by thread: Re: Can I run the DOS FC command from Rexx?
- Index(es):
Relevant Pages
|