Batch Program Sample [message #1163082] |
Wed, 30 October 2013 16:41 |
Eclipse User |
|
|
|
I am in the process of trying to create a VERY simple natch program that will read from a table on an iSeries and simply write to the console for proof of concept. I am using 0.8.2 EGL IDE and have included my code below.
I am receiving and error stating that"bindingkey cannot be resolved" within the SQLDatasource statement.
I am sure this is probably a simply problem to resolve. I would REALLY appreciate someone pointing me in the right direction quickly. Thanks for your thoughts and help.
package programs;
import eglx.persistence.Entity;
import eglx.persistence.Id;
import eglx.persistence.sql.*;
import eglx.lang.Resource;
record Warehs type Entity{@table{name = "PIR900FKE.WAREHS"}}
whcode decimal(3) {@Id};
whdesc string(30);
end
// program
//
program ReadiSeriesWH
// Use Declarations
//use usePartReference;
// Constant Declarations
const constantName string = "literalString";
// Variable Declarations
variableName string;
myRec Warehs;
function main()
ds SQLDataSource?{@Resource{bindingkey = "iSeriesDB2"}};
get myRec from ds;
Syslib.writeStdout(myrec.whcode);
Syslib.writeStdout(constantName);
end
end
|
|
|
Powered by
FUDForum. Page generated in 0.04445 seconds