• Start an iSeries command line and enter the following:  
    • WRKOBJ OBJ(PPLBTA<ENV>/TNAPILOG*) OBJTYPE(*FILE)

*Note:  Replace <ENV> with the two character environment designator.

  • Does the log file currently exist?
    • If No -> go to the CRTPF step 
    • If the name of the file is TNAPILOG 
      • Skip to the CLRPFM step
    • If the name of the file is anything else like TNAPILOG??, the object was renamed at some point to disable the logging, rename it as follows:
      • RNMOBJ OBJ(PPLBTA<ENV>/TNAPILOG??) OBJTYPE(*FILE) NEWOBJ(TNAPILOG)
  • Start logging with an empty file.  Clear the log file with the following command:
    • CLRPFM FILE(PPLBTA<ENV>/TNAPILOG)
  • To ensure the file doesn't fill up and cause errors, enter the following command:
    • CHGPF FILE(PPLBTA<ENV>/TNAPILOG) SIZE(*NOMAX)
  • CRTPF FILE(PPLBTA<ENV>/TNAPILOG) RCDLEN(80) SIZE(*NOMAX)


 Important!  Disable logging as soon as troubleshooting is complete –


To disable logging:

RNMOBJ OBJ(PPLBTA<ENV>/TNAPILOG) OBJTYPE(*FILE) NEWOBJ(TNAPILOGXX)

*Note:  Replace <ENV> with the two character environment designator