Page 1 of 1

Use SORT to get unique values from one of two files

PostPosted: Fri Dec 15, 2017 1:22 pm
by Matt99
(This was moved from JCL forum group)

Let's say I have two files:

FIle1:
111
222
333

FIle2:
111
333
444

And I want to print all values that are in File1, but not in File2.

So in this case OutFile would be:
222

Can you help me with this?

Re: Use SORT to get unique values from one of two files

PostPosted: Fri Dec 15, 2017 1:45 pm
by enrico-sorichetti
search the forum, there are quite a few examples dealing with the requirement using JOINKEYS