411 REFERENCE · Wikibooks
Cabinet Vision: The Last Mile/User Created Standards
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Basic Structure of a UCS
A UCS can be broken down into a few discrete, let's call them blocks.
First line should be a comment describing the UCS
First block is your For Each line. Should only have ONE at the top of the UCS, more will screw it up.
Second block is your Off-Switch. You should delete parameters you don't want preserved and create an EXIT from the UCS if needed
Third block is where you define your controls. Custom parameters typically go here. Lots of IF [parameter] = NULL statements.
Fourth block is where you take action. Your prep work pays off here. Here's where your modifications happen; here's where you dimension parts and hardware.
Fifth block is where you clean up. Close out any leftover END IFS and use DELETE on unneeded parameters.