Steps to release and re-allocate the HISTFILE on ESP Workload Automation
search cancel

Steps to release and re-allocate the HISTFILE on ESP Workload Automation

book

Article ID: 196178

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

Is there any way to release and reallocate the HISTFILE? 

Environment

Release : All Releases 

Component : ESP WORKLOAD AUTOMATION

Cause

Need to allocate new larger HISTFILE

Resolution

Perform the following steps from the page mode on the ESP Master: 

1. Allocate a larger HISTFILE.

2. Issue command to stop tracking:       OPER TRACKING NOSTORE

3. Command to display the HISTFILE:  LISTHIST

4. Command to close the HISTFILE:    OPER HISTFILE histid CLOSE   (  Note:  histid is the history file identifier of eight characters max.  )

5. Issue MVS console command to delete the HISTFILE from ESP: 

     /F esp_stc,HISTFILE histid DELETE

     then answer "Y" to the following prompt

    ESP437A CONFIRM REQUEST TO DELETE HISTFILE HIST1, REPLY Y OR N

6. Run IDCAMS REPRO to copy the original HISTFILE to the new one.

7. Define and re-allocate the new HISTFILE with backup:

    HISTFILE histid DEFINE DSN(ESP.NEW.HISTFILE) BACKUPDSNAME(ESP.BACKUP.HISTFILE) -
    BACKUPTIME(6AM)         

8. Issue command to enable tracking:   OPER TRACKING STORE


Note: it's important to turn off tracking first to avoid losing job history data written to the HISTFILE.