After an updated CA UFO application was moved from test to production CICS region using the OXEXPORT and OXIMPORT utilities, several SC21 errors occur when attempt to run the application.
SCREEN COMPILATION ERROR DIAGNOSTICS SC21 W DDS= ddsname; Line#= linenumber; Fld= fieldname cannot be found
An edit of application DD shows that the screen fields do exist.
What is causing SC21 screen compilation errors when try to run an updated CA UFO application which was moved from another CICS region?
The SC21 error may be occurring because the old application component is still in memory or resides in the CA UFO Stage file. If so, the component will need to be refreshed by forcing compilation.
To force compilation, do any of the following:
- Do a UFO NEW copy of the application DDs.
- Or, edit the component and "dummy update" (overtype something in the DD then hit pf1 to update). Updating the DD will make any prior version in memory or in the Stage file become obsolete. Be sure to update the primary DD if there are multiple, continued DDs.
- Or, delete the individual components manually from the Stage file.
Using UFOSTAGE, enter "I" in the "ST" (status) column and press pf1 to update. This will delete that component.
- Or, delete the Stage file.
NOTE: This will force CA UFO to compile any application that was previously compiled and staged the next time it is requested for execution.