MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compare two objects?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
key
Beginner


Joined: 29 Dec 2005
Posts: 19
Topics: 6

PostPosted: Mon May 08, 2006 7:46 am    Post subject: Compare two objects? Reply with quote

Hi,

I am working in compiler migration project. I need a help on following scenario.

We have prepared the code for new complier like

%If <new> then
%do;
--- New options---
---
%end,
%Else Do;
--- old options ---
%End;

This code is working fine for new and old compilers.

Now we need to prove that both the objects of with adding new code 'ELSE' part (with old options) and older program (without adding this code) compiler objects are same or not.

All over again, is it possible to compare two objects? If yes, how to do that?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon May 08, 2006 7:59 am    Post subject: Reply with quote

key,

Do you want to compare the source modules or the Load Modules? Either case 3.13 aka SuperC can be used to compare.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
key
Beginner


Joined: 29 Dec 2005
Posts: 19
Topics: 6

PostPosted: Mon May 08, 2006 8:18 am    Post subject: Reply with quote

Thanks much for your immt. reply.

I need to compare the objects of both the source modules.

And could you please suggest me, Comparing Load modules will solve this situation?

Kindly let me know.
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Mon May 08, 2006 8:24 am    Post subject: Reply with quote

If you run both programs through their respective compilers where the output is the source generated by the preprocessors, you can compare those using SuperC, but you will have to manually verify that the logic contained within the differing parts iproduces the same result. It's been too many years now since I've done this to remember the PL/I compiler option for doing this, but I'd guess it is something like MSOURCE and the addition of an output DD statement in the compile proc.

I think PL/I also compilers have an option to format the code so you may want to run both outputs through the formatter before comparing them also.
Back to top
View user's profile Send private message Visit poster's website
key
Beginner


Joined: 29 Dec 2005
Posts: 19
Topics: 6

PostPosted: Mon May 08, 2006 1:05 pm    Post subject: Reply with quote

Thanks for your reply.

I heard that we can use AMBILIST utility to find meaning full difference between two load modules.. Could you please explain on this.
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Mon May 08, 2006 1:09 pm    Post subject: Reply with quote

That will only show you lengths and maybe compile dates. It won't help comparing generated logic.
Back to top
View user's profile Send private message Visit poster's website
key
Beginner


Joined: 29 Dec 2005
Posts: 19
Topics: 6

PostPosted: Tue May 09, 2006 8:20 am    Post subject: Reply with quote

Thanks for your reply.

I haven't used AMBILIST utility.
Could you please send me the JCL for using AMBILIST utility.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue May 09, 2006 8:21 am    Post subject: Reply with quote

Quote:

Could you please send me the JCL for using AMBILIST utility.


key,

Please SEARCH before posting. There are many examples on this site for that. Just search for AMBLIST Twisted Evil

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
key
Beginner


Joined: 29 Dec 2005
Posts: 19
Topics: 6

PostPosted: Tue May 09, 2006 8:29 am    Post subject: Reply with quote

Sorry for the inconvenience.

I have searched AMBILIST, I couldn't find anything. This is my mistake. :(

Ok, I will search it.

Thanks much fro ur immt. response.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group