Hi, I created a batch job. When i put the debug point and manually run the job, it runs successfully. but when i schedule it to run every desired duration, It's running without doing processing. It's not even executing run method called from main method. I tried to make entry in a customized trace table just before the call to run() method in the main method. It's not creating any entry in the trace table. There is no any condition in the processRecords() method which may skip the execution anywhere. so now i m bit confused what to do. These are my class methods. -------------------------------------------------------------- public class MyClass extends RunBaseBatch { //container inLine; #define.CurrentVersion(1) #localmacro.CurrentList #endmacro } -------------------------------------------------------------- server static void main(Args _args) { MyClass myClass; ; myClass= new MyClass(); if (myClass.prompt()) { myClass.run(); } } -------------------------------------------------------------- public container pack() { return [#CurrentVersion]; } ------------------------------------------------------------ public boolean unpack(container _packedClass) { Integer version = RunBase::getVersion(_packedClass); ; switch (version) { case #CurrentVersion : [version] = _packedClass; break; default : return false; } return true; } ------------------------------------------------------ public static server MyClass construct() {; return new MyClass(); } ------------------------------------------------------ public static ClassDescription description() {; return "MyClass Description"; } ---------------------------------------------------- public void run() { #OCCRetryCount try { this.processRecords(); } catch (Exception::Deadlock) { retry; } catch (Exception::UpdateConflict) { if (appl.ttsLevel() == 0) { if (xSession::currentRetryCount() >= #RetryNum) { throw Exception::UpdateConflictNotRecovered; } else { retry; } } else { throw Exception::UpdateConflict; } } catch { throw Exception::Error; } } ----------------------------------------------------------------
↧