[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

2088.0. "Version number extracted??" by WFOFAC::BILL () Fri Jan 19 1990 13:49

    
    Does anyone know if there is a way to extract the DECwindows version
    number form a file header or something?  How can I do this from a
    DCL command procedure?
    
    Thanks in advance.
T.RTitleUserPersonal
Name
DateLines
2088.1QUARK::LIONELFree advice is worth every centMon Jan 22 1990 12:389
How do you want to use it?  Remember that DECwindows is really just a component
of VMS, and therefore any version number ought to be the VMS version number.
(That VMS images tend not to have usable image idents is an issue I plan
to work on in the near future.)

If we knew what you needed the version number for, we could best advise you
on how to determine it.

			Steve
2088.2.COM file to extract image header id fieldAIRBAG::SWATKOElectrons are cheap. Trees are not.Mon Jan 22 1990 15:2814
This will extract and print the image header id field.  This may or may not
accomplish what you want, but here it is...
-Mike

$ infilename = P1
$ if infilename .eqs. "" then inquire infilename "Filename"
$ open/read infile 'infilename
$ read infile file_buf
$ close infile
$ file_p = f$cvsi(0,16,f$extract(6,2,file_buf))    !  6 = IHD_W_IMGIDOFF
$ file_p = file_p + 40                             ! 40 = IHI_T_IMGID
$ file_c = f$cvsi(0,8,f$extract(file_p,1,file_buf)) ! fetch ASCIC count
$ file_buf = f$extract(file_p + 1,file_c,file_buf)   ! fetch ASCIC string
$ write sys$output file_buf
2088.3WFOFAC::BILLMon Jan 22 1990 17:048
    
    Thanks for the help.  To .1's reply, I am writting a install procedure
    to check for DECwindows version before the instalation continues
    since the application will not run on anything lower that V2.0 .
    
    To .2's reply, this works fine and thank you.
    
    
2088.4PSW::WINALSKICareful with that VAX, EugeneMon Jan 22 1990 18:0612
RE: .3

>    I am writting a install procedure
>    to check for DECwindows version before the instalation continues
>    since the application will not run on anything lower that V2.0

Then what you want to check for is a VMS version that is V5.3 or later.  The
only "DECwindows V2.0" stuff that ran on VMS versions earlier than V5.3 was
field test stuff and thus those sites should all have upgraded to the real
thing by now.

--PSW
2088.5QUARK::LIONELFree advice is worth every centTue Jan 23 1990 10:424
I agree with Paul in .4.  I note that some of the DECwindows images have
image idents of the form "DECWINDOWS 5.3".  How's THAT for confusing?

				Steve