
Anonymous
Not applicable
2009-10-28
03:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Error trying to read data form a DB2 file on an AS400
When I try to read data from a DB2 file (to the tLogRow) I am getting the errors below.
I connect OK (the Check is successful) using an ODBC connection (defined on my computer) and also when I use the AS400 connection that comes with open studio.
(I never got the two "DB2" types of connections to pass the check).
Any help would be appreciated. Thank you.
Errors:
1)
Starting job ReadAS400 at 14:02 28/10/2009.
connecting to socket on port 4072
connected
connecting to socket on port 5026
connected
Exception in component tDBInput_2
java.sql.SQLException: SQL0204 - KMASTER in QGPL type *FILE not found.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(Unknown Source)
at test1.readas400_0_1.ReadAS400.tDBInput_2Process(ReadAS400.java:3966)
at test1.readas400_0_1.ReadAS400.runJobInTOS(ReadAS400.java:6779)
at test1.readas400_0_1.ReadAS400.main(ReadAS400.java:6682)
disconnected
disconnected
Job ReadAS400 ended at 14:02 28/10/2009.
Alternatively, I get
2)
Starting job ReadAS400 at 11:12 27/10/2009.
Exception in component tAS400Input_1
java.sql.SQLException: Token . was not valid. Valid tokens: + - AS <IDENTIFIER>.
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:650)
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:621)
at com.ibm.as400.access.AS400JDBCStatement.commonPrepare(AS400JDBCStatement.java:1578)
at com.ibm.as400.access.AS400JDBCStatement.executeQuery(AS400JDBCStatement.java:2136)
at test1.readas400_0_1.ReadAS400.tAS400Input_1Process(ReadAS400.java:2321)
at test1.readas400_0_1.ReadAS400.runJobInTOS(ReadAS400.java:3951)
at test1.readas400_0_1.ReadAS400.main(ReadAS400.java:3868)
Job ReadAS400 ended at 11:12 27/10/2009.
I connect OK (the Check is successful) using an ODBC connection (defined on my computer) and also when I use the AS400 connection that comes with open studio.
(I never got the two "DB2" types of connections to pass the check).
Any help would be appreciated. Thank you.
Errors:
1)
Starting job ReadAS400 at 14:02 28/10/2009.
connecting to socket on port 4072
connected
connecting to socket on port 5026
connected
Exception in component tDBInput_2
java.sql.SQLException: SQL0204 - KMASTER in QGPL type *FILE not found.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(Unknown Source)
at test1.readas400_0_1.ReadAS400.tDBInput_2Process(ReadAS400.java:3966)
at test1.readas400_0_1.ReadAS400.runJobInTOS(ReadAS400.java:6779)
at test1.readas400_0_1.ReadAS400.main(ReadAS400.java:6682)
disconnected
disconnected
Job ReadAS400 ended at 14:02 28/10/2009.
Alternatively, I get
2)
Starting job ReadAS400 at 11:12 27/10/2009.
Exception in component tAS400Input_1
java.sql.SQLException: Token . was not valid. Valid tokens: + - AS <IDENTIFIER>.
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:650)
at com.ibm.as400.access.JDError.throwSQLException(JDError.java:621)
at com.ibm.as400.access.AS400JDBCStatement.commonPrepare(AS400JDBCStatement.java:1578)
at com.ibm.as400.access.AS400JDBCStatement.executeQuery(AS400JDBCStatement.java:2136)
at test1.readas400_0_1.ReadAS400.tAS400Input_1Process(ReadAS400.java:2321)
at test1.readas400_0_1.ReadAS400.runJobInTOS(ReadAS400.java:3951)
at test1.readas400_0_1.ReadAS400.main(ReadAS400.java:3868)
Job ReadAS400 ended at 11:12 27/10/2009.
484 Views
5 Replies

Anonymous
Not applicable
2009-10-29
09:30 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found a solution.
484 Views

Anonymous
Not applicable
2009-10-29
09:42 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
Please share your solution with other users.
Thanks for your support!
Best regards
shong
Please share your solution with other users.
Thanks for your support!
Best regards
shong
484 Views

Specialist III
2010-02-23
04:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm not sure what Shlomo's solution was, but I can provide mine. I was also getting the "*FILE not found" error with an ODBC connection to JD Edwards' DB2. I was using the "iSeries Access for ODBC Driver". When I changed the driver to the "Client Access ODBC Driver (32 bit)" the error did not come up.
Hope this helps
- Russell
Hope this helps
- Russell
484 Views

Anonymous
Not applicable
2010-02-24
02:56 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why didn't you use the AS400 component and jdbc ?
484 Views

Contributor
2010-02-24
01:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Neth - I'm experienced with ODBC but fairly new to AS/400... I originally tried the AS/400 component and once I saw that hex values were coming back decided to try the iSeries ODBC driver. Since the output was clean it made my decision.
484 Views
