Operating System - OpenVMS
1753362 Members
5068 Online
108792 Solutions
New Discussion юеВ

How can i display DEC C and DEC BASIC version?

 
nos.
Occasional Contributor

How can i display DEC C and DEC BASIC version?

How can i display DEC C and DEC BASIC version?
(when i issue command lic list or sh lic, it will display version 0.0.)

Thank you.

5 REPLIES 5
Martin P.J. Zinser
Honored Contributor

Re: How can i display DEC C and DEC BASIC version?

cc/ver will for for C.
I do not have Basic around, but basic/ver might
be worth a try (cxx/ver and fort/ver do work,
cobol/ver does not)
Mac Lilley
Frequent Advisor

Re: How can i display DEC C and DEC BASIC version?

Hello

You could use anal/image ...

$ anal/image/inter sys$system:DECC$COMPILER.EXE;

Then from the Image Identification Information

Image Identification Information

image name: "DECC$COMPILER"
image file identification: "C V6.4-008"
image file build identification: ""
link date/time: 30-APR-2001 16:18:11.32
linker identification: "A11-47"
Press RETURN to continue, or enter a period (.) for next file:

Regards

ML
Mac Lilley
Frequent Advisor

Re: How can i display DEC C and DEC BASIC version?

Hello

Or even simpler ...
$ pipe anal/image sys$system:basic.exe | search sys$pipe "image file identification:"

ML
Martin P.J. Zinser
Honored Contributor

Re: How can i display DEC C and DEC BASIC version?

One word of caution still. If you intent to
decide which C language features are available the C compiler version is not the only thing to look for. You certainly need to take into account the OS/C-RTL version too. Ultimatly the only save way to know if function/feature xxx is available on a given system you do need to compile >>and<< link a short testprogram to find out
Rick Dyson
Valued Contributor

Re: How can i display DEC C and DEC BASIC version?

The older versions of DEC C did not have the
"/Version" qualifer. One simple way I have
used for all the compilers I have ever used on OpenVMS is to use the "/List" qualifer. Then the header of the listing file always included the version of the compiler. The quickest result was like this:

$ CC /List nl:
$ type /page .lis

Rick