Provides instructions for running the same steps to analyze, build, bind, and run the MLBLDURATION application, which is an
ADO.NET managed version of LBLDURATION.
Analyze the MLBLDURATION project
- In the
Solution Explorer, double-click the
Properties entry for the
MLBLDURATION project.
- Click the
SQL tab.
Notice the directive settings for the OpenESQL ESQL Preprocessor include SQL(DBMAN=ADO). This means that we're using the ADO.NET
database connection rather than the ODBC database connection.
Also notice the SQL(DATE=EUR) directive, which specifies the European output format.
Define a post-build event
- From the
Properties window add a post-build event to execute the following command (same command you used for the LBLDURATION project):
DSN SYSTEM(HCODemo) @"$(ProjectDir)LBLDURATION.hcodsn"
- Close the
Properties window.
Build and bind the MLBLDURATION program
- In the
Solution Explorer, right-click the
MLBLDURATION project and select
Set as StartUp Project from the context menu.
- Again, right-click the
MLBLDURATION project, but this time select
Build from the context menu.
Run the MLBLDURATION application
- From the
Solution Explorer in Visual Studio, open the
LBLDURATION.cbl source file.
- Set a break point on the
goback line.
- Click
Debug > Start Debugging to debug the application.
You should see the same data output that you saw when you ran the LBLDURATION native application.
This completes the tutorial.