Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.70 KB | None | 0 0
  1. set subjects_list [db_list aaa "select unique uned_subject_id  from alf_ehea_subjects vea join v_ehea_grados_asignaturas vega on
  2.          (vea.uned_subject_id = vega.cod_estudios_asignatura and vea.term = vega.curaca) where term = '2011' and cuatrimestre = 2 and state = 'a'
  3. and (to_char(last_sync_date,'YYYYMMDD') <> to_char(sysdate, 'YYYYMMDD')
  4. or last_sync_date IS NULL) order by uned_subject_id"]
  5.  
  6. foreach subject $subject_list {
  7.  
  8.     with_catch errmsg {
  9.         integracion::ehea::sync::subject::students -uned_ehea_subject_id $subject
  10.         bs_log Notice "EHEA MANUAL: $subject sincronizada"
  11.     } {
  12.          ns_log Notice "EHEA MANUAL: Fallo al sincronizar usuarios en $subject : \n$errmsg"
  13.    }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement