Yes, it will. Were you rolling your own, you would need to know that the address of the source code pathname is in the object record header. Usually it's right at the end, but this is not the case if you've used $COPYRIGHT or $* directives, as the text for these follows the pathname of the source code.
And it's different again if the code was compiled with the -I option. SRS.UV.HEADER "knows" about these things. ----- Original Message ----- From: [EMAIL PROTECTED] (Vance Dailey) Date: Thu, 11 Mar 2004 14:09:45 -0500 To: "'U2 Users Discussion List'" <[EMAIL PROTECTED]> Subject: RE: Parsing Pathname from Object Code > I may have posted too soon. With a little more searching I found Gyle > Iversons SRS.UV.HEADER program. It looks like it will do the trick. > Vance > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Behalf Of Vance Dailey > Sent: Thursday, March 11, 2004 1:55 PM > To: U2-Users (E-mail) > Subject: Parsing Pathname from Object Code > > > I am attempting to parse out the original pathname of a cataloged program > from the object code. I am looking for some guidance on how to interpret the > symbol table at the end of the file. Prior to the Basic compiler release > 6.2.2 it appears that the pathname could be stripped off the very end of the > file, but now two additional char(0)s have been added on to the and. One > appears to be for the $copyright notice and the other is unknown to me. In > addition programs compiled with the "-T" do not contain the information > which can cause confusion if I simply extract printable chars from the end > of the file back to the last char(255). > > Does anyone have documentation on the object code symbol/line number table? > > Thanks, > Vance > > -- > u2-users mailing list > [EMAIL PROTECTED] > http://www.oliver.com/mailman/listinfo/u2-users > > -- > u2-users mailing list > [EMAIL PROTECTED] > http://www.oliver.com/mailman/listinfo/u2-users -- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users
