Sorry, but the best thing to do is move the spool file validity checking portion of your code to the Command Processing program (CPP). The VCP was never intended to validate things like spool files and system objects outside of the command parameters. It can only deal with the most basic of parameter validation issues. (ie. If this value is specified in this parameter then this or that value must be specified in this or that parameter, etc., etc.) It's basic premise was to be used to validate parameters that were beyond the functionality provided by the command definition language statements, which is why the VCP is called in PDM.

Reply With Quote