TSS9801E CPF RECOVERY FILE HDR INCORRECT FILE WILL NOT BE PROCESSED

Document ID : KB000098360
Last Modified Date : 29/05/2018
Show Technical Document Details
Issue:

When trying to create new CPF Recovery file we get a return code of zero but the create fails with the following message:

TSS9801E CPF RECOVERY FILE HDR INCORRECT; FILE WILL NOT BE PROCESSED 

Resolution:
If the JCL has DCB=KEYLEN=1 then the blocksize is created with one extra block causing the blocksize to be invalid and the error to be received.
Remove the  DCB=KEYLEN=1 from the JCL.