Re: OMVS - comparing directories for differences

2021-09-30 Thread Paul Gilmartin
On Thu, 30 Sep 2021 00:35:39 -0500, Bruce Hewson wrote: >My thanks to all who responded, but especially to Bill Schoen for the fscp >exec. > He's brilliant, dedicated, and generous. Sometimes he has translated my merest wishes into funcrtion. >Although not being permitted to access guthub from

Re: OMVS - comparing directories for differences

2021-09-29 Thread Bruce Hewson
My thanks to all who responded, but especially to Bill Schoen for the fscp exec. Although not being permitted to access guthub from office directly, I was able to get a copy of the exec. I am testing now. As to original reason, looking at merging the new IBM z/OS supplied UNIX configuration

Re: OMVS - comparing directories for differences

2021-09-29 Thread Paul Gilmartin
On Wed, 29 Sep 2021 19:47:59 -0400, James Crudele wrote: >You can try this: > >//LISTDIR EXEC PGM=IKJEFT01, >// PARM='HFSDIRC / /SERVICE' >//* >//SYSPROC DD DISP=SHR,DSN=SYS1.SBPXEXEC >// DD

Re: OMVS - comparing directories for differences

2021-09-29 Thread James Crudele
You can try this: //LISTDIR EXEC PGM=IKJEFT01, // PARM='HFSDIRC / /SERVICE' //* //SYSPROC DD DISP=SHR,DSN=SYS1.SBPXEXEC // DD DISP=SHR,DSN=userid.TEST.REXX //SYSTSPRT DD SYSOUT=*

Re: OMVS - comparing directories for differences

2021-09-29 Thread Lennie Dymoke-Bradshaw
From: IBM Mainframe Discussion List On Behalf Of James Crudele Sent: 29 September 2021 20:48 To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: OMVS - comparing directories for differences /* Rexx HFSDIRC */ parse arg dir1 dir2 junk dir1 = strip(dir1)

Re: OMVS - comparing directories for differences

2021-09-29 Thread James Crudele
I run this in batch and use superc to compare the two inputs. > On Sep 29, 2021, at 16:21, Paul Gilmartin > <000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > > On Wed, 29 Sep 2021 15:47:42 -0400, James Crudele wrote: > >> /* Rexx HFSDIRC */ >> parse arg dir1

Re: OMVS - comparing directories for differences

2021-09-29 Thread Paul Gilmartin
On Wed, 29 Sep 2021 15:47:42 -0400, James Crudele wrote: >/* Rexx HFSDIRC */ >parse arg dir1 dir2 junk >dir1 = strip(dir1) >dir2 = strip(dir2) >if dir1 = "" or dir2 = "" then do > say "Two

Re: OMVS - comparing directories for differences

2021-09-29 Thread James Crudele
/* Rexx HFSDIRC */ parse arg dir1 dir2 junk dir1 = strip(dir1) dir2 = strip(dir2) if dir1 = "" or dir2 = "" then do say "Two directories must be specified" exit 4

Re: OMVS - comparing directories for differences

2021-09-29 Thread James Crudele
I recall a rexx called hfsdirc. Not sure where I found it. I’m sure I can share if needed. > On Sep 28, 2021, at 22:22, Bruce Hewson wrote: > > Hello all, > > an OMVS question. > > We are looking for a way to compare 2 filesystem structures, starting at root > '/'. > > Differences we

Re: OMVS - comparing directories for differences

2021-09-29 Thread kekronbekron
Stuff like this from IBM's coffers is pretty neat! - KB ‐‐‐ Original Message ‐‐‐ On Wednesday, September 29th, 2021 at 6:19 PM, Bill Schoen wrote: > If you want to compare file systems, you can try fscp at > > https://github.com/IBM/IBM-Z-zOS/tree/main/zOS-Tools-and-Toys/fscp > >

Re: OMVS - comparing directories for differences

2021-09-29 Thread Bill Schoen
If you want to compare file systems, you can try fscp at https://github.com/IBM/IBM-Z-zOS/tree/main/zOS-Tools-and-Toys/fscp Bill Schoen -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to

Re: OMVS - comparing directories for differences

2021-09-29 Thread kekronbekron
Grep filters as appropriate in the middle, I suppose. My main point being - make use of git style diff-ing. - KB ‐‐‐ Original Message ‐‐‐ On Wednesday, September 29th, 2021 at 11:44 AM, Paul Gilmartin <000433f07816-dmarc-requ...@listserv.ua.edu> wrote: > On Wed, 29 Sep 2021

Re: OMVS - comparing directories for differences

2021-09-29 Thread Paul Gilmartin
On Wed, 29 Sep 2021 05:48:25 +, kekronbekron wrote: >Else, ls -alR on both dirs. >Then, create a blank project in PyCharm/IntelliJ and navigate to the dir >containing these 2 listings. >Select both and then choose diff/compare. >Believe me, git style diff-ing is super neat and convenient,

Re: OMVS - comparing directories for differences

2021-09-28 Thread kekronbekron
Else, ls -alR on both dirs. Then, create a blank project in PyCharm/IntelliJ and navigate to the dir containing these 2 listings. Select both and then choose diff/compare. Believe me, git style diff-ing is super neat and convenient, compared to the standard diff we use on zOS. -KB ‐‐‐

Re: OMVS - comparing directories for differences

2021-09-28 Thread Paul Gilmartin
On Tue, 28 Sep 2021 21:22:29 -0500, Bruce Hewson wrote: > >an OMVS question. > >We are looking for a way to compare 2 filesystem structures, starting at root >'/'. > >Differences we want to identify:- > >1. directory >2. file >3. symlink > >It is the last we are having trouble working out how to

Re: OMVS - comparing directories for differences

2021-09-28 Thread kekronbekron
Please do correct me if what I say is wrong or makes no sense. diff -R /root1 /root2 Best output that to a file and analyze. Setup both directories with git & git diff them via GitHub Desktop or GitKraken or JetBrains's Space. - KB ‐‐‐ Original Message ‐‐‐ On Wednesday, September

OMVS - comparing directories for differences

2021-09-28 Thread Bruce Hewson
Hello all, an OMVS question. We are looking for a way to compare 2 filesystem structures, starting at root '/'. Differences we want to identify:- 1. directory 2. file 3. symlink It is the last we are having trouble working out how to go about it. Hoping someone has done this before.