Question : Can't Delete AS400 LIB Because of File/Member Error

I am trying to do a data refresh. I have removed all the locks on the LIB I need to delete.

I have issued the following command to delete the LIB:  DLTLIB TESTDTA

It started running for about 25mins. Then it just gave the error message below.

Can someone please help me get past this error? I assume I need to enter some command for that table. I'm not an AS400 expert so I will need some guidance.

Thanks!
Attachments:
 
 

Answer : Can't Delete AS400 LIB Because of File/Member Error


Get a list of what's left in the library:
WRKOBJ OBJ(TESTDTA/*ALL)

Look in your job log to see why the file cannot be deleted:
DSPJOBLOG
Press F10 to see lower level messages, and page up to see more details.

Use Display Database Relations (DSPDBR) command to see if there are logical files (logical views) over the physical file (table):
DSPDBR TESTDTA/F470371
This will list logical files that may need to be deleted.

Post back!
Barry
Random Solutions  
 
programming4us programming4us