Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Examples » Batch Program Sample(Trouble with Binding)
Batch Program Sample [message #1163082] Wed, 30 October 2013 20:41
Kenneth Elder is currently offline Kenneth ElderFriend
Messages: 4
Registered: October 2013
Junior Member
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
Previous Topic:Open Sound Control (OSC)
Next Topic:SWT Hello World fails
Goto Forum:
  


Current Time: Thu Apr 25 13:18:37 GMT 2024

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

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

Back to the top