NetBatch Manual

Attributes
NetBatch Manual522460-004
7-94
PURGE-IN-FILE Job Attribute
BATCHCOM displays this message if you specify the PURGE-IN-FILE ON attribute
for a job whose input file denies you purge access:
0530-W You have no PURGE access to IN file
Examples
This example shows the effect of the PURGE-IN-FILE ON attribute:
> FILEINFO
$DATA7.TRASH
Code … Last Modification Owner RWEP …
INFILE 101 … 3-Oct-94 11:04:30 205,70 "AAAO" …
> LOGON 205,70, psswrd
> BATCHCOM $ZBAT; SUBMIT JOB, IN $DATA7.TRASH.INFILE, PURGE
IN-FILE
ON
Job ZBAT-0024 Jobnumber 24 stopped
0512-W Other users can WRITE or PURGE the IN file; resecure
if
required
> BATCHCOM $ZBAT; STATUS JOB 24
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
24 ZBAT-0024 205,70 300 EXECUTING DEFAULT
> BATCHCOM $ZBAT; STATUS JOB 247
2099-E JOB does not exist
> FILEINFO
No files match \MELBDEV.$DATA7.TRASH.*
These scheduler log file events record the stopping of the job from the previous
example and the purging of its input file:
03OCT94 11:18:27 FINISH JOB ZBAT-0024 T_0:0:8:880 J_24 P_TACL
03OCT94 11:18:27 DELETE JOB ZBAT-0024 J_24
03OCT94 11:18:28 PURGE IN File: \A.$DATA7.TRASH.INFILE J_24
This example shows the scheduler purging the input file of a job that has not run:
> FILEINFO
$NB.TEMP
Code EOF Last Modification Owner RWEP …
INFILE 101 2078 16-Sep-93 11:36:38 133,2 "NNNG" …
> LOGON 133,255, psswrd
> BATCHCOM $ZBAT; SUBMIT JOB A, IN INFILE, PURGE-IN-FILE
ON, HOLD ON
Job A job number 250 submitted
> BATCHCOM $ZBAT; STATUS JOB 250
JOB STATUS
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
250 A 133,255 1:Hold DEFAULT
> BATCHCOM $ZBAT; DELETE JOB 250
Job A job number 250 deleted
> BATCHCOM $ZBAT; STATUS JOB 250
2099-E JOB does not exist