On my Transaction Download from the As/400 ODBC connection, I am getting 200 or so extra records than I am expecting – using job parameters as variables in my SQL where clause on the ODBC step.
If I HARDCODE the values into the WHERE clause, I get the correct number of transaction records. So I’m thinking it has to do with quotes or lack of for the character strings - -But I can’t see what is being rendered.
Is there a way to view the ACTUAL SQL that is being generated at Run Time ??
For instance –
In Data Manager, I can code WITH THE VARIABLES:
Select … … …
FROM "{$JDEDATALIB}"."F57011BZ5M"
WHERE FBTYPF='CF' AND FBDRQJ >= {$FRM_DATE}
AND FBCO='{$CAN_CODE}'
But the RUN TIME Log actually shows me the reconciliation of the values of the variables:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
… … …
FROM "PD900DTA"."F57011BZ5M"
WHERE FBTYPF='CF' AND FBDRQJ >= 106001
AND FBCO='00101'
[PROGRESS - 03:28:44] Checking Fact Data existence
[DETAIL - 03:28:45] Fact Data found
[PROGRESS - 03:28:45] Processing Reference Data
[PROGRESS - 03:28:45] Processing Dimension Domains
[PROGRESS - 03:28:45] Processing Fact Data
[SQL - 03:28:45] truncating table
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
If I HARDCODE the values into the WHERE clause, I get the correct number of transaction records. So I’m thinking it has to do with quotes or lack of for the character strings - -But I can’t see what is being rendered.
Is there a way to view the ACTUAL SQL that is being generated at Run Time ??
For instance –
In Data Manager, I can code WITH THE VARIABLES:
Select … … …
FROM "{$JDEDATALIB}"."F57011BZ5M"
WHERE FBTYPF='CF' AND FBDRQJ >= {$FRM_DATE}
AND FBCO='{$CAN_CODE}'
But the RUN TIME Log actually shows me the reconciliation of the values of the variables:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
… … …
FROM "PD900DTA"."F57011BZ5M"
WHERE FBTYPF='CF' AND FBDRQJ >= 106001
AND FBCO='00101'
[PROGRESS - 03:28:44] Checking Fact Data existence
[DETAIL - 03:28:45] Fact Data found
[PROGRESS - 03:28:45] Processing Reference Data
[PROGRESS - 03:28:45] Processing Dimension Domains
[PROGRESS - 03:28:45] Processing Fact Data
[SQL - 03:28:45] truncating table
++++++++++++++++++++++++++++++++++++++++++++++++++++++++