Operating System - HP-UX
1833875 Members
1972 Online
110063 Solutions
New Discussion

How to find installed cobol software is of 32bit or 64 bit

 
Pradeep_3
Frequent Advisor

How to find installed cobol software is of 32bit or 64 bit

Dear Gurus,

Please tell me how will I know what is the version of cobol installed on my system.As when I do swlist -l product | grep -i cobol
it is showing its version but not specifying
whether it is 32 bit or 64 bit.

Please help
Regards
Pradeep
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: How to find installed cobol software is of 32bit or 64 bit

Locate the executable (/opt/cobol/bin/cobol or something like that) and do a file on it. Results look like this:

# file /stand/vmunix
/stand/vmunix: ELF-64 executable object file - PA-RISC 2.0 (LP64)


Pete

Pete
Robert-Jan Goossens
Honored Contributor

Re: How to find installed cobol software is of 32bit or 64 bit

Hi Pradeep,

I've a sun sparc version running, but it should work the same on HPUX.

dxxx:# pwd
/opt/lib/cobol/bin
xxx:# file cobol
cobol: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped

Best regards,
Robert-Jan
Bill Hassell
Honored Contributor

Re: How to find installed cobol software is of 32bit or 64 bit

Actually, a compiler can generate any kind of code and the exceutable does not necessarily need to match the generated code. You probably want to look at the compiler options to see if a 64bit target option exists in the man pages.


Bill Hassell, sysadmin