CLNFOF


This process is stage 3 in the EDR Pipeline. It is an OSF triggered process and its purpose is to delete files from the EDR Pipeline that are no longer needed. The files to be deleted are determined from the type of OSF the CLNFOF process triggers on.

When triggered by a PNM Class OSF, all the FOF processing has completed, so the PNM file is deleted. If the shove status is used to trigger the PNM class OSF, a duplicate PNM file is read to get the names of all the duplicate zipped FOF files to be deleted.

 

 When triggered by a FOF Class OSF, The process records the completion date in the related pnmfof_table database record. If all the FOF files for the related PNM have a non-blank completion date, then the OSF of the the related PNM is set to a wait status, which will trigger the mode described above.

CLNFOF Process Modes

 
       clnfof -p $PATH_FILE –r clnfof (in task line of resource file)
 
              where: clnfof = command name
                         -p = denotes path file specification follows
                 $PATH_FILE = path name supplied by pipeline
                         -r = resource file name follows
                     clnfof = the resource file for this process    
 

CLNFOF Process I/O

 
    Files deleted by the process are as follows:
 
          EDR_RECEIPT_DIR: PNM_yyyydddhhmmss.txt_done - PNM text files (normal)
          EDR_RECEIPT_DIR: PNM_yyyydddhhmmss.txt_duplicate - PNM text files (shove)
          EDR_RECEIPT_DIR: Tyyyydddhhmm.mrg-gz – duplicate zipped FOF files (shove)
 

CLNFOF Process Error Handling

Any errors that occur while trying to delete files or access the database cause the appropriate OSF to be set to "f" in the CL stage column. Error messages are also posted to the CLNFOF Process Log File in the OPUS_HOME_DIR