Method: ActiveRecord::ConnectionAdapters::IBM_DB2_I5#task_structure_load

Defined in:
lib/active_record/connection_adapters/ibm_db_adapter.rb

#task_structure_load(task, filename = nil) ⇒ Object



3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
# File 'lib/active_record/connection_adapters/ibm_db_adapter.rb', line 3473

def task_structure_load(task,filename=nil)
  if filename.nil?
    filename = task_schema(task)
  end
  # restore the library
  begin
    cmd = "RSTLIB SAVLIB(#{filename}) DEV(*SAVF) SAVF(QGPL/#{filename}) MBROPT(*ALL) ALWOBJDIF(*ALL)"
    qcmdexc cmd
    task.log(cmd)
  rescue Exception => e
    puts e.message
    task.log("#{cmd} : #{e.message}")
  end
end