Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.84 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. set i 0
  7. set error_c 0
  8.  
  9. foreach subject $subjects_list {
  10.  
  11.     with_catch errmsg {
  12.         integracion::ehea::sync::subject::students -uned_ehea_subject_id $subject
  13.         incr i
  14.         ns_log Notice "EHEA MANUAL: $subject sincronizada ($i de 62)"
  15.     } {
  16.          incr error_c
  17.          ns_log Notice "EHEA MANUAL: Fallo al sincronizar usuarios en $subject : \n$errmsg"
  18.    }
  19. }
  20. ns_log Notice "EHEA_MANUAL Fin: Correctas: $i Fallos: $error_c"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement