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: 992
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: 1722
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: 10211
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: 2025
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. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm


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