tags:

views:

42

answers:

3

How to check db2 version on Z/OS using only SQL commands?

Thanks, Melita

+1  A: 

You can try the following query:

SELECT service_level, fixpack_num FROM TABLE
  (sysproc.env_get_inst_info())
  as INSTANCEINFO

It works on LUW, so I can't guarantee that it'll work on z/OS, but it's worth a shot.

CanSpice
it doesn't work on Z/OS :( (I tried already)
gizmo
Damn and blast. I wish things would work the same between the two.
CanSpice
A: 

SYSIBM.VERSION session variable?

Michael Sharek
A: 

There is also the env_inst_info admin view. As with CanSpice I can only vouch for LUW, but there should at least be a similar view available for Z/OS.

SELECT * FROM SYSIBMADM.ENV_INST_INFO
Christian Maslen