HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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