You have been able to use nonvisual parts available with the VA: Database, DB2 CLI feature to develop a DB2 application that runs on a server. The application uses CLI to access a DB2 database. For information on which version of DB2 is required to use CLI, refer to the Supported Platforms and System Requirements. section of the VA Smalltalk web page. Your configuration for CLI must be set up correctly. A sample JCL file for configuring CLI is as follows:The environments in which you can run applications that have nonvisual parts using CLI, nonvisual parts static, query specs, static SQL code, or dynamic SQL code are shown in Table 1.With the VA: Database, DB2 CLI feature loaded in your development image, define your server application using the feature's nonvisual parts. To define your server application, use the database parts as you would for an application that runs solely on the workstation. The VA Smalltalk Database Guide and the VA Smalltalk help provide information on using database parts.For example, follow the instructions in the VA Smalltalk Database Guide to make a database server application that uses dynamic SQL. Then, package and run it as described.After you complete the database server application on the workstation, create a passive image using CLI database support for image and simulation, load the application into the passive image, precompile for any transction environment, and package the application using the XD packaging function. The VA Smalltalk Server Guide and Deploying your application on the target environment describe how to create a passive image and package a server application.Note that you will need to separate the strings in your application because it uses nonvisual parts. See Step 2: Separating strings in your application.Finally, transfer the packaged image to the server environment and deploy it. (If you are deploying the application on OS/390, see Running a database application.)As long as caf: is true, values specified for these three statements will be unchanged. Further, even if you change the connection spec in the development environment, values for the statements will remain unchanged.A sample connection spec definition for the dbsample "Alias" is as follows:For information on precompiling static SQL, refer to the VA Smalltalk Database Guide.
![]() |