Re: USS compare

2022-06-27 Thread Allan Staller
Classification: Confidential

The diff command (with appropriate options)  will do what you want.

-Original Message-
From: IBM Mainframe Discussion List  On Behalf Of 
Bhum Muth
Sent: Friday, June 24, 2022 6:02 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: USS compare

[CAUTION: This Email is from outside the Organization. Unless you trust the 
sender, Don’t click links or open attachments as it may be a Phishing email, 
which can steal your Information and compromise your Computer.]

mounted zFS files(2 etc files) them zOS, /etc is a directory and I want to 
compare the contents of two directories.

Thanks,
BM

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN
::DISCLAIMER::

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only. E-mail transmission is not guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or may contain viruses in transmission. 
The e mail and its contents (with or without referred errors) shall therefore 
not attach any liability on the originator or HCL or its affiliates. Views or 
opinions, if any, presented in this email are solely those of the author and 
may not necessarily reflect the views or opinions of HCL or its affiliates. Any 
form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of this message without the prior written 
consent of authorized representative of HCL is strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any email and/or attachments, please check them for 
viruses and other defects.


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: USS compare (and SMP/E?)

2022-06-25 Thread Paul Gilmartin
On Sat, 25 Jun 2022 07:34:23 -0500, Paul Gilmartin wrote:

>On Fri, 24 Jun 2022 18:01:37 -0500, Bhum Muth wrote:
>
>>mounted zFS files(2 etc files) them zOS, /etc is a directory and I want to 
>>compare the contents of two directories. 
>> 
>Since you mention /etc,  re you dealing with IBM's service convention:
>?

(I pasted the wrong link.  Should have been:
.)

>... Because IBM products do not create files into /etc or /var, there is no
>possibility that SMP/E installation of an IBM product or service will 
> overlay
>your own files within /etc or /var.
>(more in a subtopic)
>
>"diff", recommended by David C. Can  be useful.  After
>diff -r dir1 dir2 > diff-results.txt
>
>Inspect diff-results.txt and do one of the following:
>o Copy selected members from the other directory
>o Use edited diff-results.txt as input to /bin/patch.
>o Manually edit selected members.
>
>Does IBM recommend making changes to /etc as SMP/E USERMODs and
>using established techniques for reconciling USERMODs?
>
>ISRSUPC and IEBUPDTE appear to be irrelevant.
>
>-- 
>gil
>
>--
>For IBM-MAIN subscribe / signoff / archive access instructions,
>send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: USS compare (and SMP/E?)

2022-06-25 Thread Paul Gilmartin
On Fri, 24 Jun 2022 18:01:37 -0500, Bhum Muth wrote:

>mounted zFS files(2 etc files) them zOS, /etc is a directory and I want to 
>compare the contents of two directories. 
> 
Since you mention /etc,  re you dealing with IBM's service convention:
?
... Because IBM products do not create files into /etc or /var, there is no
possibility that SMP/E installation of an IBM product or service will 
overlay
your own files within /etc or /var.
(more in a subtopic)

"diff", recommended by David C. Can  be useful.  After
diff -r dir1 dir2 > diff-results.txt

Inspect diff-results.txt and do one of the following:
o Copy selected members from the other directory
o Use edited diff-results.txt as input to /bin/patch.
o Manually edit selected members.

Does IBM recommend making changes to /etc as SMP/E USERMODs and
using established techniques for reconciling USERMODs?

ISRSUPC and IEBUPDTE appear to be irrelevant.

-- 
gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: USS compare

2022-06-24 Thread kekronbekron
This is exactly what I had used to compare USS when applying zOS maint.

- KB

--- Original Message ---
On Saturday, June 25th, 2022 at 5:40 AM, David Crayford  
wrote:


> On 25/06/2022 7:43 am, Bhum Muth wrote:
>
> > I want to compare the names and content of the files
>
>
> diff -r dir1 dir2 > diff-results.txt
>
>
>
> > --
> > For IBM-MAIN subscribe / signoff / archive access instructions,
> > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>
>
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: USS compare

2022-06-24 Thread Paul Gilmartin
On Fri, 24 Jun 2022 23:42:44 +, Sri h Kolusu wrote:
>
>Use dircmp
>
>https://www.ibm.com/dscs/en/zos/2.4.0?topic=descriptions-dircmp-compare-directories
> 
I nadn't known about that:
Guideline: The dircmp utility is fully supported for compatibility
with older UNIX systems. However, use diff -r instead because
it might provide greater functionality and is considered the
standard for portable UNIX applications as defined by
POSIX.2 IEEE standard 1003.2-1992.

Now that I do, I regret it.  I'll stay with David C's:
diff  
https://www.ibm.com/docs/en/zos/2.4.0?topic=descriptions-diff-compare-two-text-files-show-differences

(but dircmp does have a simpler parameter list.)

-- 
gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: USS compare

2022-06-24 Thread David Crayford
I already provided a link to the doc in a previous post. 

> On 25 Jun 2022, at 8:59 am, Paul Gilmartin 
> <042bfe9c879d-dmarc-requ...@listserv.ua.edu> wrote:
> 
> On Sat, 25 Jun 2022 08:10:23 +0800, David Crayford wrote:
> 
>>> On 25/06/2022 7:43 am, Bhum Muth wrote:
>>> I want to compare the names and content of the files
>> 
>> diff -r dir1 dir2 > diff-results.txt
>> 
> That's at least an instance.  If the OP wants general proficiency, he should 
> consult:
> .
> 
> -- 
> gil
> 
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: USS compare

2022-06-24 Thread Paul Gilmartin
On Sat, 25 Jun 2022 08:10:23 +0800, David Crayford wrote:

>On 25/06/2022 7:43 am, Bhum Muth wrote:
>> I want to compare the names and content of the files
>
>diff -r dir1 dir2 > diff-results.txt
>
That's at least an instance.  If the OP wants general proficiency, he should 
consult:
.

-- 
gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: USS compare

2022-06-24 Thread David Crayford

On 25/06/2022 7:43 am, Bhum Muth wrote:

I want to compare the names and content of the files


diff -r dir1 dir2 > diff-results.txt




--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: USS compare

2022-06-24 Thread Bhum Muth
And save the output to some text file

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: USS compare

2022-06-24 Thread Bhum Muth
I want to compare the names and content of the files

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: USS compare

2022-06-24 Thread Sri h Kolusu
>> mounted zFS files(2 etc files) them zOS, /etc is a directory and I want to 
>> compare the contents of two directories.

BM,

Use dircmp

https://www.ibm.com/docs/en/zos/2.4.0?topic=descriptions-dircmp-compare-directories


Thanks,
Kolusu

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: USS compare

2022-06-24 Thread Enzo D'Amato
Do you want to compare the file names in the directory, or the names and 
content of the files?

Get BlueMail for Android
On Jun 24, 2022, at 7:01 PM, Bhum Muth 
mailto:bhumi.mu...@gmail.com>> wrote:

mounted zFS files(2 etc files) them zOS, /etc is a directory and I want to 
compare the contents of two directories.

Thanks,
BM



For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: USS compare

2022-06-24 Thread David Crayford
diff  
https://www.ibm.com/docs/en/zos/2.4.0?topic=descriptions-diff-compare-two-text-files-show-differences

> On 25 Jun 2022, at 6:40 am, Bhum Muth  wrote:
> 
> Would like to know if any easy way to compare 2 USS files (say compare 2 
> versions of /etc).
> 
> Thanks,
> BM
> 
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: USS compare

2022-06-24 Thread Bhum Muth
mounted zFS files(2 etc files) them zOS, /etc is a directory and I want to 
compare the contents of two directories. 

Thanks,
BM

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: USS compare

2022-06-24 Thread Charles Mills
Does SUPER-C support UNIX files?

Also, /etc is a directory, not a file, right? Do you want to compare two files, 
or the contents of two directories?

Charles


-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Enzo D'Amato
Sent: Friday, June 24, 2022 3:43 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: USS compare

I am not sure if all of these are on USS, but one of these should do what you 
are looking for:
https://www.softwaretestinghelp.com/compare-two-files-unix/

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Bhum Muth
Sent: Friday, June 24, 2022 6:40 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: USS compare

Would like to know if any easy way to compare 2 USS files (say compare 2 
versions of /etc).

Thanks,
BM

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: USS compare

2022-06-24 Thread Enzo D'Amato
I am not sure if all of these are on USS, but one of these should do what you 
are looking for:
https://www.softwaretestinghelp.com/compare-two-files-unix/

-Original Message-
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Bhum Muth
Sent: Friday, June 24, 2022 6:40 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: USS compare

Would like to know if any easy way to compare 2 USS files (say compare 2 
versions of /etc).

Thanks,
BM

--
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN