I need to abort the job if no rows are selected in Source OCI stage. How can we do this, I tried using the following in Transformer
If @INROWNUm=0 Then UtilityAbortToLog('The Job aborted as no Date is selected from DW_PROCESS_CTL to be populated as START_DATE into COMM_EXTRACT_PROCESS_CTL -- Manual Interpretation is Required ') Else Read_comm_extract_procees_ctl.start_date
I thought if no rows are selected, @INROWNUM becomes 0, but when I ran the job the job didnt get aborted, even though there were no rows selected.
I have two questions
1. How to abort the job
2. Is it good to abort a job like this in production, I have to do this because if no rows are selected, the sequencer will take wroong incremental dates?


</a>