Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » simple batch program(binding issue)
simple batch program [message #1164192] Thu, 31 October 2013 13:52
Kenneth Elder is currently offline Kenneth ElderFriend
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
Previous Topic:Problem in starting Tomcat server instance
Next Topic:Should there be a warning/error here
Goto Forum:
  


Current Time: Tue Apr 23 10:35:20 GMT 2024

Powered by FUDForum. Page generated in 0.03548 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top