Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Rexx Script

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
janmejay
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 81
Location: bangalore

PostPosted: Wed Oct 17, 2012 1:00 pm    Post subject: Rexx Script
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    Post subject:
Reply with quote

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

Active Member


Joined: 08 May 2006
Posts: 994
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Oct 17, 2012 1:33 pm    Post subject:
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: 1787
Location: UK

PostPosted: Wed Oct 17, 2012 1:41 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Wed Oct 17, 2012 1:58 pm    Post subject: Reply to: Rexx Script
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

Senior Member


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

PostPosted: Wed Oct 17, 2012 6:54 pm    Post subject: Reply to: Rexx Script
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us