View previous topic :: View next topic
|
Author |
Message |
janmejay Warnings : 1 New User
Joined: 22 Jun 2007 Posts: 85 Location: bangalore
|
|
|
|
Hi All. I am just learning Rexx. I just wanted some idea based on that I will proceed. will it be possible ..
Can we develop a Rexx script , who will compare the two same programs in different Library and merge the code if any missing.
ex . compare Test vesrion with Prod version and merge the code in test version if any extra code found in Prod version.. |
|
Back to top |
|
|
ezio vin
New User
Joined: 16 Aug 2012 Posts: 44 Location: india
|
|
|
|
you can do whatever you wish in REXX |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
Comparing versions of programs using REXX is not recommended. Programs tend to have a large number or records and REXX is generally not appropriate for processing such large datasets.
Also, when comparing records, you will discover not only 'missing' items but also mismatches which would also need to be handled - you can;t just blindly accept differences. There are several products already available to assist in this type of work
Garry. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
You really do need to start with something simple and work your way up to something as complicated as what you are proposing. Start with Hello World and progress to reading a file then copying a file then editing a file etc. Then add ISPF like a menu panel to select which of the previous programs to execute. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
why reinvent the wheel...
ISPF and ASSEMBLER TOOLKIT SUPERC do exactly that
just look at the manuals
and ...
the algorithm to match arbitrary/unsorted sequences of record and identify differences is not trivial |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Improvements are done in the test version and when adequately tested, it is promoted to the production level.
98% of the time, the improvement is the addition of new code. But there are cases where the improvement is moving some statements from one place to another or even the deletion of some statements.
I do not think you should blindly merge code. My suggestion is to use the COMPARE command of the editor and use MD line commands as necessary.
If you do not have confidence in the test version, delete it and start over with the production version as the base. |
|
Back to top |
|
|
|