DB2®Real370 Structure

Represents the REAL Db2® for z/OS® for OS/390® database type, which is represented in IBM® 370 notation. Encapsulates the double .NET data type.

Namespace:
IBM.Data.DB2Types
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax


[Visual Basic]
Public Structure DB2Real370
[C#]
public struct DB2Real370
[C++]
public value class DB2Real370

Remarks

The DB2Real370 class is only supported for applications with connections to Db2 for z/OS databases.

Example

[C#] The following example demonstrates how to retrieve a single REAL column value from a Db2 for z/OS table.

[C#]
  public static string getParam(DB2Connection conn)
  {
    string mySelectQuery = "SELECT REAL370COL FROM TESTTBL";
    DB2Command myCommand = new DB2Command(mySelectQuery, conn);
    DB2DataReader reader = myCommand.ExecuteReader();

    if (reader.Read())
    {
      DB2Real370 selectValue = reader.GetDB2Real370(0);

      if (!selectValue.IsNull) { return selectValue.ToString(); }
    }

    return "NULL";
  }

Thread safety

Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.