How do you delete a User in History (HIST) status from the Datacom Datadictionary?
search cancel

How do you delete a User in History (HIST) status from the Datacom Datadictionary?

book

Article ID: 49489

calendar_today

Updated On:

Products

Datacom Datacom/DB DATACOM - AD Datacom/AD Datacom/Server

Issue/Introduction

The PROD (Production) version of a User (Entity PERSON) was deleted in the Datacom Datadictionary which caused a HIST (History) version of the User to be created. How can the History version be deleted?  The following error occurs when trying to re-add or update the User in DDUPDATE.

 For:
      -ADD PERSON username                                       
  Result is error:                                                                      
      **** ERROR ****  RETURN CODE = DDPOAE0001  OCCURRENCE ALREADY EXISTS                                                                              
 For:
      1003 RELT,AUTHORIZATION,$DD-SEC-ADM(PROD),PER-ATZ-AUTH    
 Result is error:                                                                          
      **** ERROR ****  RETURN CODE = DDPR010001  CANNOT RELATE TO HISTORY     
 For:                                                     
      -UPD PERSON,username,PROD 
 Result is error:                                   
      **** ERROR ****  RETURN CODE = DDPISC0001  INVALID STATUS CHANGE REQUEST

 

 

Environment

Release: Datacom

Resolution

In batch, use the DDUPDATE utility with the following SYSIN:

 -USR user, password
 -DEL PERSON, person, (histver,pswd,ovrd)
 -END 

Provide the History version, the Datadictionary password and override password.

See Datacom Datadictionary Batch reference Guide "Using the -DEL Header Transaction" for more information.