Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

Exception: Expected Identifier or quoted identifier

$
0
0

Hi, Can anybody help me out in getting this query to work? I've tested it on the sql command line and it works perfectly but when I try to run the project it produces that error in the post title, I am using Oracle database.

      

accounts-balances-totals.

      

    setcustomer-idtotypeInt64::Parse(report-term::ToString()).

      

    execsqldeclareaccounts_totals_balancesdatasetcursorfor

      

         selectcredit_accountasaccount_id, sum(credit) ascredit_balance, sum(debit) asdebit_balance, sum(credit) - sum(debit) asbalance

      

         from

      

         (

      

           selectcredit_account, transaction_id, transaction_date, amountascredit, 0 asdebit

      

           frombank_transaction

      

           union

      

           selectdebit_account, transaction_id,transaction_date, 0 ascredit, amountasdebit

      

           frombank_transaction

      

         ) wherecredit_accountin (selectaccount_idfromcustomers_accountswherecustomer_id = :customer-id)

      

         groupbycredit_account

      

    end-exec.

      

   

      

    execsql

      

        openaccounts_totals_balances

      

    end-exec.

      

   

      

    execado

      

        getcursoraccounts_totals_balancesinto :balance-sheet-set

      

            renamedatatableasaccounts_totals

      

    end-exec.

      

   

      

    setresult-settobalance-sheet-set::Copy.

      

   

      

    execsql

      

        closeaccounts_totals_balances

      

    end-exec.

Thanks


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>