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
 

 

How to validate Cobol load modules againt source program

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

New User


Joined: 13 Sep 2006
Posts: 2

PostPosted: Wed Sep 13, 2006 7:10 am    Post subject: How to validate Cobol load modules againt source program
Reply with quote

Hi

I have a number of COBOL load modules and a corresponding source programs. I have to validate whether the load modules are generated from the source programs i.e no change has been made in the sources programs after the programs have been compiled to create these loads.

Do anybody has any idea how to validate this or anybody can recommend any tool that can be used for this purpose. Please help.

Thanks
Souma
Back to top
View user's profile Send private message

balajiofcrrcoe

New User


Joined: 07 Jul 2005
Posts: 41
Location: chennai

PostPosted: Wed Sep 13, 2006 9:56 am    Post subject: Re: How to validate Cobol load modules againt source program
Reply with quote

Hi,


This could help..

By opening the load module member you can see the date and time of the compilation.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Sep 13, 2006 10:39 am    Post subject:
Reply with quote

Recompile the sources, and compare the load modules size.

O.
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Wed Sep 13, 2006 10:51 am    Post subject:
Reply with quote

hi,

This is how to look at the timestamp of load module

Assuming that you have started an ISPF browse session on the LOAD module in question you can start executing the primary command HEX ON. Then you execute the command FIND X'80FA01' FIRST. This hexadecimal string is located in the record before the record containing the timestamp. In this record the date starts in position 16 and is a packed decimal julian date. Here is an example:

?|........................................................
8F00000000000000000000000000000000000000000000000000000000
0A10000000000000000000000000000000000000000000000000000000
---------------------------------------------------------
?..5695DF108 ..q.?....
810FFFFCCFFF4009290106
05256954610801488F101F
The first record is the record containing the hexadecimal search string. The next record contains the date in position 16. The julian date is 98289. The year is 1998 and it is day number 289, whatever day that was. You can find out for yourself. AMBLIST also produces the julian date, so this is no releif. The packed field following the date is the time of day. This LOAD module was produced 11.00.16. In older LOAD modules the time will not be present. The information 5695DF108 refers to the version of the linkage editor, which produced the load module. It is an IBM product number for internal use and it will vary over time depending on various upgrades of MVS.
Back to top
View user's profile Send private message
Souma

New User


Joined: 13 Sep 2006
Posts: 2

PostPosted: Wed Sep 13, 2006 7:13 pm    Post subject: Re: How to validate Cobol load modules againt source program
Reply with quote

Thanks a lot for your prompt answer.

But I am not sure if I can use the date and time stamp of the load module to identify that the corresponding source I have is the exact source of the load. The sources are not present in panvalet. Actually the source are brought from different machine and uploaded from notepad file. Please explain.

The sources will be recompiled in a different machine. In that case can the size of the new load module and the existing load module will be same?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Sep 13, 2006 8:08 pm    Post subject:
Reply with quote

If they will not be the same, the change will be minor.

O.
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1224
Location: Israel

PostPosted: Wed Sep 13, 2006 9:13 pm    Post subject:
Reply with quote

On the other hand, there are compile options that will generate a significantly different module, even if it is the same source icon_sad.gif
(most specifically OPT / NOOPT option, but also RENT, SSRANGE, DYNAM).
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
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm


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