Hi,
Pls let me what wrong with below code,same is giving error as Position 40 Variable CBP91259DS not defined or not usable...
D CBP91259Ds E DS Extname(CBP9125901)
D Template qualified
D CB912592 PI
D ReturnCode 10
D COBANK 3S 0
D COACCT 12S 0
/Free
Exec Sql Set Option datfmt=*ISO, closqlcsr=*endmod, commit=*none;
SqlStmt = 'SELECT * FROM CBP9125901 +
WHERE C9BKNM = ? AND COACCT = ?';
Exec Sql Prepare Stmt from :SqlStmt;
Exec Sql Declare WkCrsr Cursor for Stmt;
Exec Sql Open WkCrsr Using :COBANK, :COACCT;
Exec Sql Fetch WkCrsr INTO :CBP91259Ds;
Pls let me what wrong with below code,same is giving error as Position 40 Variable CBP91259DS not defined or not usable...
D CBP91259Ds E DS Extname(CBP9125901)
D Template qualified
D CB912592 PI
D ReturnCode 10
D COBANK 3S 0
D COACCT 12S 0
/Free
Exec Sql Set Option datfmt=*ISO, closqlcsr=*endmod, commit=*none;
SqlStmt = 'SELECT * FROM CBP9125901 +
WHERE C9BKNM = ? AND COACCT = ?';
Exec Sql Prepare Stmt from :SqlStmt;
Exec Sql Declare WkCrsr Cursor for Stmt;
Exec Sql Open WkCrsr Using :COBANK, :COACCT;
Exec Sql Fetch WkCrsr INTO :CBP91259Ds;
Comment