REPLACE request

The REPLACE request replaces an existing record in the application description or operator instruction database with a record provided by your program. If the record type is other than an application description record, then the record provided by your program must have the same key fields as a record on the database; otherwise, no replace is performed.

If the record type is an application description record, then the record provided by your program can have the STATUS field modified, even if this field is part of the key. In this case, you must supply the old STATUS value and the VALTO value of the application to be replaced in the arguments. You must also set the ADVERS argument value to Y in the OPTIONS request as Y as well.

The replacing record is placed in the data area by your program. Arguments are not used if the resource code is different from AD or if you set the ADVERS argument value in the OPTIONS request to N.