I am trying to implement committment control on a physical file. The physical file is updated by a AS400 Query Definition. This Query Definition is called from a CL program.

I would like to know, whether it works or not, if I implement commitment/Rollback control from the calling CL program and then modify the physical file using a Query definition.

ie, in the CL program , I will start the commitment control, then call the Query definition to update the file, and at the end, perform rollback/commit from the CL program.

Is this possible...