You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run Cell in INB document does not run with same code as CTRL+R
If you write SQL in a INB document and run it using CTRL+R the newer DB2 for IBM i JDBC service is used.
However, if you use the Execute Cell button (see image below) an attempt is made but it does not run the same and uses the older method that uses the QSHELL DB2 tool (call QSYS/QZDFMDB2 PARM('-d' '-i' '-t')).
Also, if a cell happens to have a leading semi colon nothing happens. You will be returned a SQL statement empty or blank error even though the process sees all the SQL statements and passes them to call QSYS/QZDFMDB2 PARM('-d' '-i' '-t').
Statement prefixes are not allowed with the Execute Cell feature.
Steps to recreate above issues:
open or create a new document of type .INB
insert code of type SQL
insert more than one statement
3.a add more than one statement without table qualifications.
3.b precede the first statement to run with a semi colon
3.c prefix any SQL statement with CSV: or JSON:
results will be different depending on the test in 3.a-b
4.a
4.b
4.c
Note: using CTRL+R you can only run one statement at a time and only one under the cursor.
A low pty issue for me
Thanks, Matt
The text was updated successfully, but these errors were encountered:
Run Cell in INB document does not run with same code as CTRL+R
If you write SQL in a INB document and run it using CTRL+R the newer DB2 for IBM i JDBC service is used.
However, if you use the
Execute Cell
button (see image below) an attempt is made but it does not run the same and uses the older method that uses the QSHELL DB2 tool (call QSYS/QZDFMDB2 PARM('-d' '-i' '-t')
).Also, if a cell happens to have a leading semi colon nothing happens. You will be returned a
SQL statement empty or blank
error even though the process sees all the SQL statements and passes them tocall QSYS/QZDFMDB2 PARM('-d' '-i' '-t')
.Statement prefixes are not allowed with the
Execute Cell
feature.Steps to recreate above issues:
3.a add more than one statement without table qualifications.
3.b precede the first statement to run with a semi colon
3.c prefix any SQL statement with
CSV:
orJSON:
4.a
4.b
4.c
Note: using CTRL+R you can only run one statement at a time and only one under the cursor.
A low pty issue for me
Thanks, Matt
The text was updated successfully, but these errors were encountered: