IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Rexx Script


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
janmejay
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 85
Location: bangalore

PostPosted: Wed Oct 17, 2012 1:00 pm
Reply with quote

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
View user's profile Send private message
ezio vin

New User


Joined: 16 Aug 2012
Posts: 44
Location: india

PostPosted: Wed Oct 17, 2012 1:09 pm
Reply with quote

you can do whatever you wish in REXX
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Wed Oct 17, 2012 1:33 pm
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed Oct 17, 2012 1:41 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Oct 17, 2012 1:58 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Wed Oct 17, 2012 6:54 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top