[Info-vax] Non-portable code

Jan-Erik Söderholm jan-erik.soderholm at telia.com
Wed Jan 6 07:36:32 EST 2010


> In article <mn.2d1b7da1fb0d0bdb.104627 at brutele.be>, Marc Van Dyck 
> <marc.vandyck at brutele.be> writes:
>> G'd evening to all...
>> 
>> I have a program on my systems, that was written in the VAX ages, and
>> that I use to display which version of layered products, tools, etc, 
>> are installed. It simply extracts from the image headers the version 
>> info that has been put there by the linker, with the IDENT clause of 
>> the link options file. ...


Check if this works on your system :

$ dir sys$system:DCPS$SMB.EXE

Directory SYS$COMMON:[SYSEXE]

DCPS$SMB.EXE;1

Total of 1 file.

$ analyze/image/sel=(arch,ident,link_time) sys$system:DCPS$SMB.EXE
SYS$COMMON:[SYSEXE]DCPS$SMB.EXE;1
OpenVMS Alpha
"DCPS V2.6 ECO 3"
14-SEP-2007 10:41:47.22

$ sh sym analyze$*
   ANALYZE$ARCHITECTURE = "OpenVMS Alpha"
   ANALYZE$BUILD_IDENTIFICATION = ""
   ANALYZE$FILE_TYPE = ""
   ANALYZE$IDENTIFICATION = ""DCPS V2.6 ECO 3""
   ANALYZE$IMAGE_TYPE = ""
   ANALYZE$LINKER_IDENTIFICATION = ""
   ANALYZE$LINK_TIME = "14-SEP-2007 10:41:47.22"
   ANALYZE$NAME = ""
$

See "$ help analyze /image /select" for details.



More information about the Info-vax mailing list