Chapter 5

Section 5.3

Using VSAM OTDs

Using Views

5.3Using Views

Views are used to look at data from selected columns within selected tables. View OTDs are read-only.

For select operations, see “Select Operations” on page 51.

5.4Using Prepared Statements

You can perform table operations with prepared statements with the same method nodes you use for the regular table operations, that is, select, update, insert, and delete SQL operations.

Prepared statements allow you to create any valid SQL statements that comply with ANSI standards. Using this feature, you can execute select statements such as joins and union, insert, update and delete operations. You can also include database operations such as to_date, to manipulate input or output values. Parameter markers are also supported.

Any prepared statement you create shows up in the Collaboration Editor (Java) on the OTD where it was created, as a node with the name you assigned to it. You can implement the statement by dragging its node onto the method box for the action (the desired select, update, insert, or delete operation) in which you want the statement to be used.

Note: When using a Prepared Statement, the ResultsAvailable() method will always return true. Although this method is available, you should not use it with a ‘while’ loop. Doing so would result in an infinite loop at runtime and will stop all of the system’s CPU. If it is used, it should only be used with the ‘if’ statement.

To use a prepared statement in a Collaboration (Java)

1Using the Enterprise Designer and VSAM OTD wizard, create an OTD that contains a prepared statement. See “Add Prepared Statement” on page 41 for details.

2Create the desired Collaboration Definition (Java) using this OTD.

The Collaboration Editor (Java) displays the OTD with a Prepared Statement node. In the OTD structure, you can see both the input parameter and the result set represented as nodes.

3You can assign a Literal value or the input from another OTD to the parameter.

4To run the prepared statement, select the executeQuery method from the Prepared Statement node.

5To view the result set after the query is finished, create a while rule. For the condition, create a next method from the result set node ($Statement1Results in the example). You can continue creating your business logic by adding more Business Rules, if desired.

VSAM eWay Adapter User’s Guide

52

Sun Microsystems, Inc.

Page 52
Image 52
Sun Microsystems 5.1.3 manual Using Views, Using Prepared Statements, To use a prepared statement in a Collaboration Java

5.1.3 specifications

Sun Microsystems 5.1.3 represents a significant version in the evolution of Sun's software products, particularly in the area of network operating systems and development tools. Released during a time when Sun was a leading enterprise in the field of computing, 5.1.3 brought a host of new features, enhancements, and technologies that catered to the demands of users looking for robust and reliable IT infrastructure.

One of the defining characteristics of Sun Microsystems 5.1.3 was its enhanced scalability. The operating system was designed to handle large amounts of data processing and support numerous simultaneous users. This feature made it particularly attractive for businesses operating in resource-intensive environments such as finance, telecommunications, and large-scale enterprise applications.

A significant focus for 5.1.3 was its improved networking capabilities. The release integrated advanced networking protocols, allowing for better interoperability between systems. This feature enabled seamless communication across diverse hardware platforms, thus enhancing productivity and collaboration among users.

In terms of software development, Sun Microsystems 5.1.3 included an updated toolset that made application development more accessible. Its support for various programming languages, including C, C++, and Java, facilitated a versatile development environment. The included Sun C/C++ Compiler was particularly noteworthy, providing developers with optimized performance and debugging features.

Security features were also a priority in 5.1.3, addressing growing concerns over data protection and system vulnerabilities. The system implemented advanced user authentication, role-based access controls, and encrypted communications, thereby bolstering the integrity of user data and enhancing overall system security.

Additionally, Sun Microsystems 5.1.3 incorporated reliable file system technologies like the Sun File System (UFS), which offered improved performance and data integrity. This file system was particularly effective for enterprises that required high availability and data protection due to its robust recovery options.

Overall, Sun Microsystems 5.1.3 showcased a blend of advanced technologies, user-oriented features, and robust performance characteristics that positioned it as a compelling choice for enterprises seeking reliable and efficient computing solutions. It illustrated Sun's continuous commitment to innovation, ensuring users were equipped with the cutting-edge tools necessary to thrive in an increasingly digital world.