Failed to reach inside for loop cursor
I try to create a PL/SQL program using for loop cursor with Toad for Oracle. It is however doesn't display out the output inside the loop.
I'm kindly asking anyone of you to pinpoint any mistakes or anything I've missed out on the codes.
Please refer to the codes below:
DECLARECURSOR c1 (L_BATCH_ID VARCHAR2 DEFAULT NULL) IS SELECTa.TRANSACTION_SOURCE,a.TRANSACTION_NUMBER,a.ORG_ID, a.GOLDEN_TAX_INVOICE_NUMBER,a.BILLING_INVOICE_NUMBER,a.LINE_NUMBER, a.USAGE_STATEMENT_NUMBER, a.STATUS,a.ERROR_MSG,b.interface_header_attribute1,b.customer_trx_id