DBA Data[Home] [Help]

APPS.IGS_OR_INST_IMP_001 SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 40

  select rpad(lookup_code,10)||meaning LINEX from igs_lookups_view where lookup_code = p_err_cd
  and lookup_type = cp_lookup_type;
Line: 82

 SELECT 'X'
 FROM   igs_lookup_values where
        lookup_code = cp_lookup_code AND
        lookup_type = cp_lookup_type AND
        enabled_flag = cp_enabled_flag;
Line: 92

 select 'X' from
 igs_or_org_inst_type where --ssawhney, view to table
 institution_type = cp_institution_type
 and close_ind = cp_close_ind;
Line: 100

                          cp_close_ind igs_or_inst_stat.closed_ind%TYPE) is select 'X' from
 igs_or_inst_stat where
 institution_status = cp_institution_stat
 and closed_ind = cp_close_ind;
Line: 110

select 'X' from
  igs_ad_code_classes acc  --ssawhney, view to table
  where class = cp_class and
  NVL(closed_ind,cp_closed_ind)=cp_closed_ind and
  code_id= cp_sec_school_location_id;
Line: 337

                  Used these cursor before every call to IGS_OR_INST_IMP_002.Update_Crosswalk_master
                  which includes the existing institution cd and IGS_OR_INST_IMP_002.Create_Crosswalk_master.
  ***************************************************************/
       CURSOR c_inst_cur (cp_data_source VARCHAR2,
                          cp_batch_id NUMBER,
                          cp_status IGS_OR_INST_INT.STATUS%TYPE) IS
       SELECT IO.*
       FROM IGS_OR_INST_INT IO
       WHERE IO.STATUS = cp_status AND
             IO.DATA_SOURCE_ID = cp_data_source AND
             IO.BATCH_ID = TO_NUMBER(cp_batch_id) ;
Line: 352

       SELECT orcv.crosswalk_id, orcv.crosswalk_dtl_id, orcv.inst_code
       FROM IGS_OR_CWLK_V ORCV
       WHERE ORCV.ALT_ID_TYPE = cp_data_source AND
             ORCV.ALT_ID_VALUE = cp_data_src_val ;
Line: 359

       SELECT 'Y'
       FROM igs_pe_hz_parties
       WHERE oss_org_unit_cd = cp_inst_code;
Line: 365

       SELECT party_id
       FROM igs_pe_hz_parties
       WHERE oss_org_unit_cd = cp_inst_code;
Line: 372

     SELECT institution_code, crosswalk_id
     FROM IGS_OR_CWLK
     WHERE institution_code = cp_inst_code;
Line: 435

                  UPDATE IGS_OR_INST_INT
                  SET ERROR_CODE = 'E001',ERROR_TEXT = NULL,  STATUS = '3'
                  WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 445

                    IGS_OR_INST_IMP_002.Update_Institution(l_cwlkinst_rec.inst_code, v_inst_rec,l_Errind,l_error_code,l_error_text);
Line: 447

                    /*  Rollback if there was an error during Update Institutions */
                        IF l_Errind = 'Y' THEN
                          ROLLBACK TO s_point;
Line: 456

                          UPDATE IGS_OR_INST_INT
                          SET error_code = l_error_code, error_text= l_error_text, STATUS = '3'
                          WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 473

                                UPDATE IGS_OR_INST_INT
                                SET error_code = l_error_code,
                                    status = '3'
                                WHERE interface_id = v_inst_rec.interface_id;
Line: 481

                                UPDATE IGS_OR_INST_INT
                                SET error_code = NULL,error_text=NULL , STATUS = '1'
                                WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 503

                    UPDATE IGS_OR_INST_INT
                    SET error_code = l_val_err, error_text= NULL , STATUS = '3'
                    WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 516

              /* Update the Crosswalk Master with the newly created Institution Code if no error has occured
                         during creation of new institution. If an error has occured then rollback to savepoint s_point */
              IF l_Errind = 'Y' THEN
                ROLLBACK TO s_point;
Line: 526

                   UPDATE IGS_OR_INST_INT
                   SET error_code = l_error_code, error_text= l_error_text , STATUS = '3'
                   WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 532

                  IGS_OR_INST_IMP_002.Update_Crosswalk_master (l_cwlkinst_rec.crosswalk_id,l_Newinstcd,l_Errind);
Line: 544

                       UPDATE IGS_OR_INST_INT
                       SET error_code = 'E040', error_text= NULL , STATUS = '3'
                       WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 565

                                  UPDATE IGS_OR_INST_INT
                                  SET ERROR_CODE = l_error_code,
                                      ERROR_TEXT =NULL,
                                      STATUS = '3'
                                  WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 574

                              UPDATE IGS_OR_INST_INT
                              SET error_code = NULL,error_text=NULL, STATUS = '1'
                              WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 598

                    UPDATE IGS_OR_INST_INT
                    SET error_code = l_val_err, error_text= NULL,  STATUS = '3'
                    WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 618

                        UPDATE IGS_OR_INST_INT
                        SET ERROR_CODE = 'E006',error_text = NULL, STATUS = '3'
                        WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 626

                          IGS_OR_INST_IMP_002.Update_Institution(v_inst_rec.exst_institution_cd, v_inst_rec,l_Errind,l_error_code,l_error_text);
Line: 627

                                      /* Update the Crosswalk Table if the Previous update is successful, else rollback to savepoint */
                          IF l_Errind = 'Y' THEN
                            ROLLBACK TO s_point;
Line: 636

                               UPDATE IGS_OR_INST_INT
                               SET error_code = l_error_code, error_text= l_error_text,  STATUS = '3'
                               WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 658

                                    UPDATE IGS_OR_INST_INT
                                    SET error_code = 'E051', error_text= 'crosswalk_id of crosswalk details table does not match with the master record', status = 3
                                    WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 664

                                    IGS_OR_INST_IMP_002.Update_Crosswalk_master(l_cwlkinst_rec.crosswalk_id,v_inst_rec.exst_institution_cd,l_Errind);
Line: 667

                                IGS_OR_INST_IMP_002.Update_Crosswalk_master(l_cwlkinst_rec.crosswalk_id,v_inst_rec.exst_institution_cd,l_Errind);
Line: 685

                                       UPDATE IGS_OR_INST_INT
                                       SET ERROR_CODE = 'E040', ERROR_TEXT=NULL, STATUS = '3'
                                       WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 703

                                              UPDATE IGS_OR_INST_INT
                                              SET ERROR_CODE = l_error_code,
                                                  ERROR_TEXT =NULL,
                                                  STATUS = '3'
                                              WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 711

                                           UPDATE IGS_OR_INST_INT
                                           SET error_code = NULL,error_text=NULL, STATUS = '1'
                                           WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 733

                        UPDATE IGS_OR_INST_INT
                        SET error_code = l_val_err, error_text= NULL, STATUS = '3'
                        WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 755

                        UPDATE IGS_OR_INST_INT
                        SET error_code = l_error_code, error_text= l_error_text , STATUS = '3'
                        WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 785

                      UPDATE IGS_OR_INST_INT
                      SET ERROR_CODE = 'E004',error_text =NULL, STATUS = '3'
                      WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 799

                    UPDATE IGS_OR_INST_INT
                    SET error_code = 'E007',error_text=NULL , STATUS = '3'
                    WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 813

                           UPDATE IGS_OR_INST_INT
                           SET error_code = l_error_code,
                               error_text=NULL ,
                               status = '3'
                           WHERE interface_id = v_inst_rec.interface_id;
Line: 821

                           UPDATE IGS_OR_INST_INT
                           SET error_code = NULL,error_text=NULL, STATUS = '1'
                           WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 846

                UPDATE IGS_OR_INST_INT
                SET error_code = l_val_err, error_text= NULL , STATUS = '3'
                WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 863

                 UPDATE IGS_OR_INST_INT
                 SET error_code = 'E006', error_text=NULL , STATUS = '3'
                 WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 871

                    IGS_OR_INST_IMP_002.Update_Institution(v_inst_rec.exst_institution_cd, v_inst_rec,l_Errind,l_error_code,l_error_text);
Line: 880

                       UPDATE IGS_OR_INST_INT
                       SET error_code = l_error_code, error_text= l_error_text, STATUS = '3'
                       WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 905

                                     UPDATE IGS_OR_INST_INT
                                     SET error_code = 'E004' , error_text =NULL,  STATUS = '3'
                                     WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 919

                                       UPDATE IGS_OR_INST_INT
                                       SET ERROR_code = 'E007', error_text = NULL, STATUS = '3'
                                       WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 935

                                         UPDATE IGS_OR_INST_INT
                                         SET error_code = l_error_code,
                                             error_text = NULL,
                                             status = '3'
                                         WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 943

                                         UPDATE IGS_OR_INST_INT
                                         SET error_code = NULL,error_text=NULL, STATUS = '1'
                                         WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 966

            UPDATE IGS_OR_INST_INT
            SET error_code = l_val_err, error_text= NULL, STATUS = '3'
            WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 981

  delete_log_int_rec(p_batch_id);
Line: 1014

                  Used these cursor before every call to IGS_OR_INST_IMP_002.Update_Crosswalk_master
                  which includes the existing institution cd and IGS_OR_INST_IMP_002.Create_Crosswalk_master.
  ***************************************************************/

     CURSOR c_inst_cur(cp_status IGS_OR_INST_INT.STATUS%TYPE,
                       cp_data_source VARCHAR2,
                       cp_ds_match VARCHAR2,
                       cp_batch_id NUMBER) IS
       SELECT *
       FROM IGS_OR_INST_INT IO
       WHERE IO.STATUS = cp_status AND
             IO.DATA_SOURCE_ID = cp_data_source AND
             cp_ds_match = NVL(IO.ALT_ID_TYPE,cp_ds_match) AND
             IO.BATCH_ID = cp_batch_id ;
Line: 1030

       SELECT crosswalk_id, crosswalk_dtl_id, inst_code
       FROM IGS_OR_CWLK_V ORCV
       WHERE ORCV.ALT_ID_TYPE = p_data_source AND
             ORCV.ALT_ID_VALUE = p_data_src_val ;
Line: 1037

       SELECT 'Y'
       FROM igs_pe_hz_parties
       WHERE oss_org_unit_cd = cp_inst_code;
Line: 1042

       SELECT crosswalk_id
       FROM IGS_OR_CWLK
       WHERE institution_code = cp_inst_cd;
Line: 1048

       SELECT party_id
       FROM igs_pe_hz_parties
       WHERE oss_org_unit_cd = cp_inst_code;
Line: 1055

    SELECT institution_code, crosswalk_id
    FROM IGS_OR_CWLK
    WHERE institution_code = cp_inst_code;
Line: 1121

                      UPDATE IGS_OR_INST_INT
                      SET error_code = 'E001', error_text=NULL, STATUS = '3'
                      WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1130

                                     IGS_OR_INST_IMP_002.Update_Institution(l_cwlkinst_rec.inst_code, v_inst_rec,l_Errind,l_error_code,l_error_text);
Line: 1136

                                         /* Create a Record if the above Update is Successful , else rollback to the savepoint */
                                         IF l_Errind  = 'Y' THEN
                                                        ROLLBACK TO s_point;
Line: 1146

                                                   UPDATE IGS_OR_INST_INT
                                                   SET error_code = l_error_code, error_text= l_error_text, STATUS = '3'
                                                   WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1161

                                                 UPDATE IGS_OR_INST_INT
                                                                 SET error_code = 'E007' , error_text=NULL, STATUS = '3'
                                         WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1174

                                                     UPDATE IGS_OR_INST_INT
                                                         SET error_code = l_error_code,error_text=NULL, STATUS = '3'
                                                                 WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1181

                                                                         UPDATE IGS_OR_INST_INT
                                                                         SET error_code = NULL,error_text=NULL, STATUS = '1'
                                                                         WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1203

                                UPDATE IGS_OR_INST_INT
                                SET error_code = l_val_err, error_text= NULL, STATUS = '3'
                                WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1225

                                       UPDATE IGS_OR_INST_INT
                                           SET error_code = l_error_code, error_text= l_error_text, STATUS = '3'
                                           WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1233

                     IGS_OR_INST_IMP_002.Update_Crosswalk_master (l_cwlkinst_rec.crosswalk_id,l_Newinstcd,l_Errind);
Line: 1242

                                 UPDATE IGS_OR_INST_INT
                     SET error_code = 'E040', error_text=NULL, STATUS = '3'
                     WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1258

                                       UPDATE IGS_OR_INST_INT
                       SET error_code = 'E007',error_text=NULL, STATUS = '3'
                       WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1271

                                          UPDATE IGS_OR_INST_INT
                              SET error_code = l_error_code, error_text=NULL,  STATUS = '3'
                                  WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1277

                                  UPDATE IGS_OR_INST_INT
                          SET error_code = NULL,error_text=NULL, STATUS = '1'
                          WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1301

                                UPDATE IGS_OR_INST_INT
                                SET error_code = l_val_err, error_text= NULL, STATUS = '3'
                                WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1317

                                      UPDATE IGS_OR_INST_INT
                          SET error_code = 'E006',error_text=NULL, STATUS = '3'
                                              WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1325

                                                          IGS_OR_INST_IMP_002.Update_Institution(v_inst_rec.exst_institution_cd, v_inst_rec,l_Errind,l_error_code,l_error_text);
Line: 1334

                                                                   UPDATE IGS_OR_INST_INT
                                                                   SET error_code = l_error_code, error_text= l_error_text, STATUS = '3'
                                                                   WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1355

                                                                                        UPDATE IGS_OR_INST_INT
                                                                                        SET error_code = 'E051', error_text= 'crosswalk_id of crosswalk details table does not match with the master record', status = 3
                                                                                        WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1362

                                                                                        IGS_OR_INST_IMP_002.Update_Crosswalk_master (l_cwlkinst_rec.crosswalk_id,v_inst_rec.exst_institution_cd,l_Errind);
Line: 1365

                                                                    IGS_OR_INST_IMP_002.Update_Crosswalk_master (l_cwlkinst_rec.crosswalk_id,v_inst_rec.exst_institution_cd,l_Errind);
Line: 1378

                                                       UPDATE IGS_OR_INST_INT
                                                               SET error_code = 'E040', error_text=NULL, STATUS = '3'
                                                                           WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1396

                                                                                 UPDATE IGS_OR_INST_INT
                                                     SET error_code = 'E007', error_text=NULL, STATUS = '3'
                                                                     WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1409

                                                           UPDATE IGS_OR_INST_INT
                                                                   SET error_code = l_error_code, error_text=NULL, STATUS = '3'
                                                   WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1415

                                                                                        UPDATE IGS_OR_INST_INT
                                                                                        SET error_code = NULL,error_text=NULL, STATUS = '1'
                                                                                        WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1438

                                        UPDATE IGS_OR_INST_INT
                                        SET error_code = l_val_err, error_text= NULL, STATUS = '3'
                                        WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1454

                  UPDATE IGS_OR_INST_INT
                  SET error_code = 'E041', error_text=NULL, STATUS = '3'
                  WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1467

           UPDATE IGS_OR_INST_INT
           SET error_code = 'E042', error_text=NULL,  STATUS = '3'
           WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1480

    delete_log_int_rec(p_batch_id);
Line: 1513

                  Used these cursor before every call to IGS_OR_INST_IMP_002.Update_Crosswalk_master
                  which includes the existing institution cd and IGS_OR_INST_IMP_002.Create_Crosswalk_master.
                  In the Exception section checked for the invalid_number exception, as if the alternate_id_value
                  is not neumeric we need to log a message stating that it should be neumeric only.
                  Created a new cursor c_neumeric_test to check whether the Alternate Id value is neumeric or not.
                  In cursor c_record_found and c_inst_code removed the to_number function.
  gmaheswa	  24 March 2006   Bug 3370808 Update interface record with E043 only when error code is null.
  ***************************************************************/

       CURSOR c_inst_cur(cp_status IGS_OR_INST_INT.STATUS%TYPE,
                         cp_data_source VARCHAR2,
                         cp_ds_match VARCHAR2,
                         cp_batch_id VARCHAR2) IS
       SELECT *
       FROM IGS_OR_INST_INT IO
       WHERE IO.STATUS = cp_status AND
             IO.DATA_SOURCE_ID = cp_data_source AND
             cp_ds_match = NVL(IO.ALT_ID_TYPE,cp_ds_match) AND
             IO.BATCH_ID = cp_batch_id;
Line: 1538

       SELECT crosswalk_id, crosswalk_dtl_id,inst_code, ALT_ID_VALUE
       FROM IGS_OR_CWLK_V ORCV
       WHERE ORCV.ALT_ID_TYPE = cp_data_source AND
             ORCV.ALT_ID_VALUE like '%' || cp_data_src_val;
Line: 1545

       SELECT 'Y'
       FROM igs_pe_hz_parties
       WHERE oss_org_unit_cd = cp_inst_code;
Line: 1550

       SELECT crosswalk_id
       FROM IGS_OR_CWLK
       WHERE institution_code = cp_inst_cd;
Line: 1556

       SELECT party_id
       FROM igs_pe_hz_parties
       WHERE oss_org_unit_cd = cp_inst_code;
Line: 1564

    SELECT institution_code, crosswalk_id
    FROM IGS_OR_CWLK
    WHERE institution_code = cp_inst_code;
Line: 1570

           SELECT to_number(cp_data_src_val) FROM DUAL;
Line: 1631

                 UPDATE IGS_OR_INST_INT
                 SET error_code = 'E051', error_text= 'crosswalk_id of crosswalk details table does not match with the master record', status = 3
                 WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1654

            UPDATE IGS_OR_INST_INT
                   SET error_code = 'E052', error_text=NULL, STATUS =3
                   WHERE INTERFACE_ID = v_inst_record.interface_id;
Line: 1692

                  UPDATE IGS_OR_INST_INT
                  SET error_code = 'E001',error_text=NULL, STATUS = '3'
                                 WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1700

                                IGS_OR_INST_IMP_002.Update_Institution(l_cwlkinst_rec.inst_code, v_inst_rec,l_Errind,l_error_code,l_error_text);
Line: 1710

                                                 UPDATE IGS_OR_INST_INT
                                 SET error_code = l_error_code, error_text= l_error_text, STATUS = '3'
                                         WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1728

                                             UPDATE IGS_OR_INST_INT
                                                     SET error_code = 'E007', error_text=NULL,  STATUS = '3'
                                     WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1741

                                            UPDATE IGS_OR_INST_INT
                                                SET error_code = l_error_code, error_text=NULL, STATUS = '3'
                                                        WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1747

                                            UPDATE IGS_OR_INST_INT
                                        SET error_code = NULL,error_text=NULL, STATUS = '1'
                                                    WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1768

                                UPDATE IGS_OR_INST_INT
                                SET error_code = l_val_err, error_text= NULL, STATUS = '3'
                                WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1789

                                           UPDATE IGS_OR_INST_INT
                                           SET error_code = l_error_code, error_text= l_error_text, STATUS = '3'
                           WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1795

                              IGS_OR_INST_IMP_002.Update_Crosswalk_master (l_cwlkinst_rec.crosswalk_id,l_Newinstcd,l_Errind);
Line: 1804

                                                    UPDATE IGS_OR_INST_INT
                                    SET error_code = 'E040' ,error_text=NULL, STATUS = '3'
                                                WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1822

                                              UPDATE IGS_OR_INST_INT
                                      SET error_code = 'E007',error_text=NULL, STATUS = '3'
                                                  WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1835

                                                            UPDATE IGS_OR_INST_INT
                                                SET error_code = l_error_code,error_text=NULL, STATUS = '3'
                                                                WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1841

                                                                UPDATE IGS_OR_INST_INT
                                                                SET error_code = NULL,error_text=NULL, STATUS = '1'
                                                                WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1863

                        UPDATE IGS_OR_INST_INT
                        SET error_code = l_val_err, error_text= NULL, STATUS = '3'
                        WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1880

                          UPDATE IGS_OR_INST_INT
                                  SET error_code = 'E001',error_text=NULL, STATUS = '3'
                  WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1888

                                  IGS_OR_INST_IMP_002.Update_Institution(v_inst_rec.exst_institution_cd, v_inst_rec,l_Errind,l_error_code,l_error_text);
Line: 1896

                               UPDATE IGS_OR_INST_INT
                                   SET error_code = l_error_code , error_text= l_error_text,STATUS = '3'
                                       WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1919

                                                                UPDATE IGS_OR_INST_INT
                                                                SET error_code = 'E051', error_text= 'crosswalk_id of crosswalk details table does not match with the master record', status = 3
                                                                WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1927

                                IGS_OR_INST_IMP_002.Update_Crosswalk_master (l_cwlkinst_rec.crosswalk_id,v_inst_rec.exst_institution_cd,l_Errind);
Line: 1930

                            IGS_OR_INST_IMP_002.Update_Crosswalk_master (l_cwlkinst_rec.crosswalk_id,v_inst_rec.exst_institution_cd,l_Errind);
Line: 1944

                                          UPDATE IGS_OR_INST_INT
                          SET error_code = 'E040',error_text=NULL, STATUS = '3'
                                              WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1962

                                             UPDATE IGS_OR_INST_INT
                                                 SET error_code = 'E007',error_text=NULL, STATUS = '3'
                                                         WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1975

                                               UPDATE IGS_OR_INST_INT
                                                   SET error_code = l_error_code, error_text=NULL, STATUS = '3'
                                                           WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 1981

                                                                UPDATE IGS_OR_INST_INT
                                                                        SET error_code = NULL,error_text=NULL, STATUS = '1'
                                                                        WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 2003

                        UPDATE IGS_OR_INST_INT
                        SET error_code = l_val_err, error_text= NULL, STATUS = '3'
                        WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 2014

          IF l_error_code IS NULL THEN -- gmaheswa 3370808 Update interface record only when error code is null.
               --Log a message to the Log File in the Conc Manager  that the record for numeric match is not found in the crosswalk dtl table
               IF gb_write_exception_log1 = TRUE THEN
                 igs_or_inst_imp_001.log_writer(v_inst_rec.interface_id,'E043');
Line: 2021

                    UPDATE IGS_OR_INST_INT
            SET error_code = 'E043', error_text=NULL, STATUS = '3'
            WHERE INTERFACE_ID = v_inst_rec.interface_id;
Line: 2042

 delete_log_int_rec(p_batch_id);
Line: 2056

PROCEDURE delete_log_int_rec(p_batch_id IN IGS_OR_INST_INT.BATCH_ID%TYPE) AS
 /*************************************************************
  Created By :ssaleem
  Date Created By : 19-SEP-2003
  Purpose : This procedure deletes all the completed records
            from the INT tables and updates the status
            of master table appropriately. Also it takes
            statistics of the operations and logs them.
  Know limitations, enhancements or remarks

  Remarks:
  * If IGS_OR_INST_INT has more than one error in one record,
    say for eg one record having both erroneous contact phone
    and erroneous statistics details, the record in
    IGS_OR_INST_INT will be updated with status 4 - Warning
    and with any one of the error code that is first processed,
    In the above case it will be E055.

  Change History
  Who             When            What
  ***************************************************************/

  CURSOR inst_lookup_cur(cp_lookup_type IGS_LOOKUP_VALUES.LOOKUP_TYPE%TYPE) IS
         SELECT lookup_code,meaning
         FROM IGS_LOOKUP_VALUES
         WHERE
           LOOKUP_TYPE = cp_lookup_type;
Line: 2098

         SELECT RPAD(INTERFACE_ID,12) || '    ' || LPAD(STATUS,7) || '     ' || ERROR_CODE EREC
         FROM IGS_OR_INST_INT
         WHERE BATCH_ID = cp_batch_id AND
               (STATUS = cp_status_error OR STATUS = cp_status_warn);
Line: 2107

         SELECT COUNT(1) CNT,STATUS STAT
         FROM IGS_OR_INST_INT
         WHERE BATCH_ID = cp_batch_id
         GROUP BY STATUS;
Line: 2119

         SELECT COUNT(1) CNT,NT.STATUS STAT
         FROM IGS_OR_INST_INT INST,
              IGS_OR_INST_NTS_INT NT
         WHERE INST.BATCH_ID = cp_batch_id AND
               INST.INTERFACE_ID = NT.INTERFACE_ID
         GROUP BY NT.STATUS;
Line: 2133

         SELECT COUNT(1) CNT,STAT.STATUS STAT
         FROM IGS_OR_INST_INT INST,
              IGS_OR_INST_STAT_INT STAT
         WHERE INST.BATCH_ID = cp_batch_id AND
               INST.INTERFACE_ID = STAT.INTERFACE_ID
         GROUP BY STAT.STATUS;
Line: 2147

         SELECT COUNT(1) CNT,SDTL.STATUS STAT
         FROM IGS_OR_INST_INT INST,
              IGS_OR_INST_STAT_INT STAT,
              IGS_OR_INST_SDTL_INT SDTL
         WHERE INST.BATCH_ID = cp_batch_id AND
               INST.INTERFACE_ID = STAT.INTERFACE_ID AND
               STAT.INTERFACE_INST_STAT_ID = SDTL.INTERFACE_INST_STAT_ID
         GROUP BY SDTL.STATUS;
Line: 2163

         SELECT COUNT(1) CNT,CON.STATUS STAT
         FROM IGS_OR_INST_INT INST,
              IGS_OR_INST_CON_INT CON
         WHERE INST.BATCH_ID = cp_batch_id AND
               INST.INTERFACE_ID = CON.INTERFACE_ID
         GROUP BY CON.STATUS;
Line: 2177

         SELECT COUNT(1) CNT,CPHN.STATUS STAT
         FROM IGS_OR_INST_INT INST,
              IGS_OR_INST_CON_INT CON,
              IGS_OR_INST_CPHN_INT CPHN
         WHERE INST.BATCH_ID = cp_batch_id AND
               INST.INTERFACE_ID = CON.INTERFACE_ID AND
               CON.INTERFACE_CONTACTS_ID = CPHN.INTERFACE_CONT_ID
         GROUP BY CPHN.STATUS;
Line: 2193

         SELECT COUNT(1) CNT,ADR.STATUS STAT
         FROM IGS_OR_INST_INT INST,
              IGS_OR_ADR_INT ADR
         WHERE INST.BATCH_ID = cp_batch_id AND
               INST.INTERFACE_ID = ADR.INTERFACE_ID
         GROUP BY ADR.STATUS;
Line: 2207

         SELECT COUNT(1) CNT,ADRU.STATUS STAT
         FROM IGS_OR_INST_INT INST,
              IGS_OR_ADR_INT ADR,
              IGS_OR_ADRUSGE_INT ADRU
         WHERE INST.BATCH_ID = cp_batch_id AND
               INST.INTERFACE_ID = ADR.INTERFACE_ID AND
               ADR.INTERFACE_ADDR_ID = ADRU.INTERFACE_ADDR_ID
         GROUP BY ADRU.STATUS;
Line: 2367

  DELETE FROM IGS_OR_INST_CPHN_INT WHERE STATUS = '1';
Line: 2369

  DELETE FROM IGS_OR_INST_CON_INT CON
  WHERE STATUS = '1' AND
        NOT EXISTS (SELECT 1
                    FROM IGS_OR_INST_CPHN_INT CPHN
                    WHERE CON.INTERFACE_CONTACTS_ID = CPHN.INTERFACE_CONT_ID AND
                          CPHN.STATUS = '3');
Line: 2376

  UPDATE IGS_OR_INST_INT INST
  SET STATUS = '4',ERROR_CODE = 'E055'
  WHERE STATUS = '1' AND
        EXISTS (SELECT 1
                FROM IGS_OR_INST_CON_INT CON
                WHERE CON.INTERFACE_ID = INST.INTERFACE_ID);
Line: 2385

  DELETE FROM IGS_OR_INST_SDTL_INT WHERE STATUS = '1';
Line: 2387

  DELETE FROM IGS_OR_INST_STAT_INT STAT
  WHERE STATUS = '1' AND
        NOT EXISTS (SELECT 1
                    FROM IGS_OR_INST_SDTL_INT SDTL
                    WHERE STAT.INTERFACE_INST_STAT_ID = SDTL.INTERFACE_INST_STAT_ID AND
                          SDTL.STATUS = '3');
Line: 2394

  UPDATE IGS_OR_INST_INT INST
  SET STATUS = '4',ERROR_CODE = 'E056'
  WHERE STATUS = '1' AND
        EXISTS (SELECT 1
                FROM IGS_OR_INST_STAT_INT STAT
                WHERE STAT.INTERFACE_ID = INST.INTERFACE_ID);
Line: 2403

  DELETE FROM IGS_OR_ADRUSGE_INT WHERE STATUS = '1';
Line: 2405

  DELETE FROM IGS_OR_ADR_INT ADR
  WHERE STATUS = '1' AND
        NOT EXISTS (SELECT 1
                    FROM IGS_OR_ADRUSGE_INT ADU
                    WHERE ADR.INTERFACE_ADDR_ID = ADU.INTERFACE_ADDR_ID AND
                          ADU.STATUS = '3');
Line: 2412

  UPDATE IGS_OR_INST_INT INST
  SET STATUS = '4',ERROR_CODE = 'E057'
  WHERE STATUS = '1' AND
        EXISTS (SELECT 1
                FROM IGS_OR_ADR_INT ADR
                WHERE ADR.INTERFACE_ID = INST.INTERFACE_ID);
Line: 2421

  DELETE FROM IGS_OR_INST_NTS_INT WHERE STATUS = '1';
Line: 2423

  UPDATE IGS_OR_INST_INT INST
  SET STATUS = '4',ERROR_CODE='E058'
  WHERE STATUS = '1' AND
        EXISTS (SELECT 1
                FROM IGS_OR_INST_NTS_INT NTS
                WHERE NTS.INTERFACE_ID = INST.INTERFACE_ID);
Line: 2444

  DELETE FROM IGS_OR_INST_INT WHERE STATUS = '1';
Line: 2609

                                       'igs.plsql.igs_or_inst_imp_001.delete_log_int_rec.others',
                                       SQLERRM, NULL,NULL,NULL,NULL,NULL, IGS_OR_INST_IMP_001.G_REQUEST_ID);
Line: 2613

END delete_log_int_rec;
Line: 2624

  ||  Purpose : Compares crosswalk inst code with interface table and updates the status accordingly.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
*/
 return_value         BOOLEAN;
Line: 2638

  UPDATE igs_or_inst_int
  SET status='3',error_code='E059'
  WHERE interface_id = p_interface_id;