This may not be the right place for this, but here goes...
In an ASP page, I'm creating an ADODB connection to an AS/400 system using a system DSN that I setup on the web server serving up the ASP pages. The DSN was created using the IBM Client Access driver that was installed with the IBM Client Access Express software (and I additionally installed a service pack for IBM CAE).
I'm able to perform simple queries against the AS/400 database, but there are some things that are stumping me. One thing in particular is the ability to have multiple logical files/tables within other physical files/tables. For a task I'm performing, the AS/400 administrator gave me this query:
"select column_list from ABCDEF(*FIRST @UVWXYZ)"
...but this produces and error saying:
"SQL0104 - Token ( was not valid."
I'm not sure why it doesn't allow the parentheses, but I took them out to see what would happen. This is what happened:
"SQL0104 - Token * was not valid."
I then tried dropping "*FIRST" from the query and got this:
"SQL7003 - File ABCDEF in LMNOP has more than one format".
The AS/400 administrator insists that the query works perfectly fine for him over his host connection, but it's not working for me with ADODB and my DSN. My assumption is that I'm trying to select the logical file @UVWXYZ as ABCDEF, but it's not working out. Any idea how I would resolve the issue?
In an ASP page, I'm creating an ADODB connection to an AS/400 system using a system DSN that I setup on the web server serving up the ASP pages. The DSN was created using the IBM Client Access driver that was installed with the IBM Client Access Express software (and I additionally installed a service pack for IBM CAE).
I'm able to perform simple queries against the AS/400 database, but there are some things that are stumping me. One thing in particular is the ability to have multiple logical files/tables within other physical files/tables. For a task I'm performing, the AS/400 administrator gave me this query:
"select column_list from ABCDEF(*FIRST @UVWXYZ)"
...but this produces and error saying:
"SQL0104 - Token ( was not valid."
I'm not sure why it doesn't allow the parentheses, but I took them out to see what would happen. This is what happened:
"SQL0104 - Token * was not valid."
I then tried dropping "*FIRST" from the query and got this:
"SQL7003 - File ABCDEF in LMNOP has more than one format".
The AS/400 administrator insists that the query works perfectly fine for him over his host connection, but it's not working for me with ADODB and my DSN. My assumption is that I'm trying to select the logical file @UVWXYZ as ABCDEF, but it's not working out. Any idea how I would resolve the issue?