Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
compare two load modules

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Rahul Mekkunnath

New User


Joined: 05 Nov 2008
Posts: 3
Location: Mumbai, India

PostPosted: Thu Nov 06, 2008 12:07 am    Post subject: compare two load modules
Reply with quote

What is the best method to compare two load modules. Case is like i have a load module which is created some time back and dont know whether it is the correct one. So inorder to make sure it is the right one i created a new load module but when i tried to compare the two load modules using SuperCE utility, its showing a lot of difference. Ideally, it should show only a difference in timestamp.
Pls suggest a way so that i can get to a conclusion whether the old load module is correct one or not.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Nov 06, 2008 12:27 am    Post subject:
Reply with quote

Hello and welcome to the forum,

Quote:
What is the best method to compare two load modules.
Modules created some time apart may not be comparable unless there have been zero changes to anything in the environment where the load modules were created.

Quote:
So inorder to make sure it is the right one i created a new load module but when i tried to compare the two load modules using SuperCE utility, its showing a lot of difference.
Not surprising. . .

If what you are interested in is the date in the load module, you can use the AMBLIST utility to see information about a load module. If you use the forum SEARCH, there are multiple topics (at least one has jcl that will work as i tested it before posting it).
Back to top
View user's profile Send private message
Pedro

Senior Member


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

PostPosted: Thu Nov 06, 2008 1:48 am    Post subject: Reply to: compare two load modules
Reply with quote

I think a seemingly minor change may cascade throughout the load module because of the registers that are used by the compiler. That is, the code produced may be the same (except for the registers used by a particular instruction) but superc shows many changes.

I saw one scheme where the register numbers are replaced by a constant. Use AMBLIST to format load module and change registers to all be '*', for example. Then do the same for the second load module and compare.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Thu Nov 06, 2008 10:06 am    Post subject:
Reply with quote

If all you need is the DATE-COMPILED, you can usually spot the eye-catcher by browsing the load module. It also shows the compiler version sometimes.
Back to top
View user's profile Send private message
Rahul Mekkunnath

New User


Joined: 05 Nov 2008
Posts: 3
Location: Mumbai, India

PostPosted: Fri Nov 07, 2008 12:08 am    Post subject: Reply to: compare two load modules
Reply with quote

Hi Pedro, you told about using AMBLIST to format load module and changing registers. Can you tell me how this is done.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Nov 07, 2008 4:57 am    Post subject:
Reply with quote

Rahul,

May be not the answer you are looking for but

1. EXECute both the programs using the same input & compare the output.

2. If there are difference in the results from above option - Why don't you compare the Source Code itself - that's rather straight forward.

Unless you've decided to go with load-module Comparison above options seems to work rather fast.
Back to top
View user's profile Send private message
Rahul Mekkunnath

New User


Joined: 05 Nov 2008
Posts: 3
Location: Mumbai, India

PostPosted: Sat Nov 08, 2008 12:29 am    Post subject:
Reply with quote

Anuj,
i have one single program for which i have a load module which was created some time earlier, but the listings is not available for that. If the listing was available we can compare the old listing with the new listing(that can be created). So only option we have is to compare the load modules.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Sat Nov 08, 2008 2:24 am    Post subject:
Reply with quote

This suggestion won't help you retroactively, but going forward I'd consider putting a display statement in your programs showing load module name and the date and time compiled. I've been doing this for many years now and am sure it's benefited someone along the way in determining whether or not the dump they are looking at matches the source listing and load module they are looking at.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Sat Nov 08, 2008 3:19 am    Post subject:
Reply with quote

Hi,
Rahul Mekkunnath wrote:
i have one single program for which i have a load module which was created some time earlier, but the listings is not available for that.
What Version Control tool do you use at your shop to compile/link the COBOL programs ? Change Man by any chance ?

In anyway you can alwyas try this option
Quote:
1. EXECute both the programs using the same input & compare the output.
if there is some ambiguity in the output - you are left with only one choice - create other load-module.. icon_smile.gif & I hope you already know what is required as an output from the program.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2285
Location: @my desk

PostPosted: Sat Nov 08, 2008 7:04 am    Post subject:
Reply with quote

Anuj,
Quote:
1. EXECute both the programs using the same input & compare the output.

What if the test data which is used produced the same results but at the same time could have resulted in different outputs with a different set of test data.icon_rolleyes.gif Extensive testing required icon_biggrin.gif
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm
No new posts Could we identify the called modules ... elixir1986 COBOL Programming 5 Fri Jul 14, 2017 1:53 am
No new posts compare 2 rows within the same file ram_vizag SYNCSORT 7 Wed Jun 14, 2017 12:34 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us