DB2 version for i5/OS V6R1

Posted on 2008-06-18
Last Modified: 2013-12-06
Which version of DB2 is used on a System i computer with the i5/OS V6R1 Operation System? Please provide the name, version, and the URL to view the DB2 product.
Question by:mbevilacqua
  • 3
LVL 18

Accepted Solution

daveslash earned 500 total points
ID: 21814795

Since DB2 is "built-in" to the operating system, then if you have i5/OS V6R1, then you automatically have DB2 for i version 6.1.

LVL 18

Expert Comment

ID: 21814831

Analogously, if you have an operating system level of V5R3, you automatically have version 5.3 of DB2.

etc .. etc

-- DaveSlash

Author Comment

ID: 21815018
Ah, that clears it up nicely, thank you Dave. Is there a SQL query that can be run to obtain the OS/DB2 version once a JDBC connection is established?
LVL 18

Expert Comment

ID: 21815306

Hmmm ... that's a good question. I know how to get that data from the operating system command-line, but I don't know how to get it from a SQL query.  It probably exists, but I'm not aware of where to get it.

If I absolutely had to get it that way, I'd have someone on the operating system side generate the data for me. Then, I could query the generated data.

e.g. from OS/400 command-line, you could do:


Then, from SQL, you'd do:

SELECT distinct SCXPFV      
FROM   MyLibrary/AllPtfs


This corresponds to V5R3 of i5/OS and therefore v5.3 of DB2.

LVL 34

Expert Comment

by:Gary Patterson
ID: 21816629
Try the following query:


Format of the returned Product_ID is documented in the DB for i5/DB2 SQL Reference:


Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
report returning null 21 79
What should be a storage size for SQL in day1, day2 and day 3 7 78
Inventory equipment in the office 7 99
business objects to connect to MSSQL 6 61
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now