When registering the STAX service, you can add the "CLEARLOGS  Enabled"
option:

[CLEARLOGS <Enabled | Disabled>]

CLEARLOGS specifies whether the STAX Job and Job User logs should be
deleted before a job is executed. Since STAX job numbers are reused, a
specific job log may contain the results for more than one job. Valid
values are "Enabled" and "Disabled", not case-sensitive. If you specify
"Enabled", the log files will be deleted before a job is executed, in order
to ensure that only one job's contents are in the logs. If you specify
"Disabled", the job logs will not be deleted. The default is "Disabled".
This option will resolve STAF variables.

For example:

SERVICE STAX LIBRARY JSTAF EXECUTE C:\STAF\services\stax\STAX.jar \
             PARMS "CLEARLOGS Enabled"

If you don't want to enable CLEARLOGS for all STAX jobs, you could enable
it on a per-job basis, by using the "CLEARLOGS Enabled" option on a  STAX
EXECUTE request.

The STAX User's Guide has more information:
http://staf.sourceforge.net/current/STAX/staxug.html

Thanks,
David


                                                                       
 David Bender          11501 Burnet Rd.   Phone (T/L): 1-512-286-5315  
 STAF/STAX Development Bldg. 903-5B002    (363-5315)                   
                       Austin, TX         ITN: 23635315                
 IBM Software Group,   78758-3400         Email: bda...@us.ibm.com     
 WPLC                                                                  
                                                                       
                                                                       






                                                                       
  From:       Sangram Bakshi <san...@gmail.com>                        
                                                                       
  To:         staf-users@lists.sourceforge.net                         
                                                                       
  Date:       04/28/2010 06:02 AM                                      
                                                                       
  Subject:    [staf-users] Flushing out staf job ids.                  
                                                                       





I observe a scenario.

1. Staf runs on a machine .

2 . We run  a job on it , say the job id is 1.

3. Then we query logs for that that job id .

STAF local LOG QUERY MACHINE {STAF/Config/MachineNickname} LOGNAME
STAX_Job_1_User

4. We shut down STAF and  restart it .

5. We submit a staf job , the job id generated can be 1 again .

6. Then try to query again.

STAF local LOG QUERY MACHINE {STAF/Config/MachineNickname} LOGNAME
STAX_Job_1_User
i observe  current job id  1's logs plus previous joib id 1 's logs .

How can i flush of the previous joib id 1 's logs  So that we get current
jobs id 1's logs .

Regards
Sangram
------------------------------------------------------------------------------

_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

------------------------------------------------------------------------------
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to