simple batch program [message #1164192] |
Thu, 31 October 2013 13:52 |
Kenneth Elder Messages: 4 Registered: October 2013 |
Junior Member |
|
|
I am trying to create a simple batch program as a proof of concept that I can use EGL within Eclipse to create a program that reads data from the iSeries and therefore can do some batch type processing when called.
I have included the code I have below. If you look toward the bottom of the screen you will see my SQLDataSource statement. I am getting a pre-compile error that says the keyword "bindingkey" in the statement
"ds SQLDataSource?{@Resource{bindingkey="iSeriesDB2"}};" cannot be resolved. I am unsure whether I need to IMPORT another reference file or whether I am coding something incorrectly. I WOULD REALLY appreciate someone's direction ASAP. Thanks so much for your consideration and help.
Program listing
package programs;
import eglx.lang.AnyException;
import eglx.persistence.Entity;
import eglx.persistence.Id;
import eglx.persistence.sql.*;
import eglx.lang.Resource;
import records.Warehs;
// 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.02765 seconds