Hi,

I have a job logs the number of users . How can I run it without end datei,e in an infinite loop with timelag of 2 hours?.

static void Job2(Args _args)
{
 int maxSessions;
 str temp;
 CommaIo myfile = new CommaIo("X:\\Padmaja\\Log.txt","A");
 container users;
 [users, maxSessions ] = SysUsersonline::getAllOnlineUserCount();
 temp=strFmt('%1 : %2 : Number Of OnLine Users : %3\n',systemdateget() ,(Time2str(TimeNow(),1,1)), int2str(maxSessions));
 myfile.write(temp);

 }
 
Can I schedule a job?.
 
Can anyone help me?.
 
Thanks in advance,
Padmaja


Do you Yahoo!?
The all-new My Yahoo! – Get yours free!

Sharing the knowledge on Axapta.


Yahoo! Groups Sponsor

Get unlimited calls to

U.S./Canada



Yahoo! Groups Links

Reply via email to