View previous topic :: View next topic |
Author |
Message |
key Beginner
Joined: 29 Dec 2005 Posts: 19 Topics: 6
|
Posted: Mon May 08, 2006 7:46 am Post subject: Compare two objects? |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Mon May 08, 2006 7:59 am Post subject: |
|
|
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 |
|
 |
key Beginner
Joined: 29 Dec 2005 Posts: 19 Topics: 6
|
Posted: Mon May 08, 2006 8:18 am Post subject: |
|
|
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 |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Mon May 08, 2006 8:24 am Post subject: |
|
|
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 |
|
 |
key Beginner
Joined: 29 Dec 2005 Posts: 19 Topics: 6
|
Posted: Mon May 08, 2006 1:05 pm Post subject: |
|
|
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 |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Mon May 08, 2006 1:09 pm Post subject: |
|
|
That will only show you lengths and maybe compile dates. It won't help comparing generated logic. |
|
Back to top |
|
 |
key Beginner
Joined: 29 Dec 2005 Posts: 19 Topics: 6
|
Posted: Tue May 09, 2006 8:20 am Post subject: |
|
|
Thanks for your reply.
I haven't used AMBILIST utility.
Could you please send me the JCL for using AMBILIST utility. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue May 09, 2006 8:21 am Post subject: |
|
|
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
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
key Beginner
Joined: 29 Dec 2005 Posts: 19 Topics: 6
|
Posted: Tue May 09, 2006 8:29 am Post subject: |
|
|
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 |
|
 |
|
|