Create Simple Data Generation Code

  1. Launch the New Code Wizard from the New Code icon.
  2. Specify the proper machine and company.
  3. Give the code the name SIMPLEC and provide a description.
  4. Click Apply.

    This creates the code.

  5. Select the code, and look at the lower part of the screen; it shows the laws that are used in the code, one law per table.
  6. Ensure that the TGT.EMPLOYEE table appears before the TGT.DEPT table. If now, reorder the tables using the arrows on the right.
  7. Right-click on TGT.EMPLOYEE; then select Set directive from the context menu.
  8. Select the DEPT column; then right-click and select Assign output class specifying the DEPT column.
  9. Right-click TGT.EMPLOYEE; then select Don’t create output on the context menu.
  10. Right-click TGT.DEPT; then select Set directive from the context menu.
  11. Right-click the COD_CUS column; then select Set directive from the context menu, specifying Other file dependencies as the directive type.
  12. Right-click TGT.EMPLOYEE; then select Set directive on the context menu.
  13. Select the DNAME column; then select Set directive from the context menu, specifying Dictionary as the directive type and USDCHSUR as dictionary name.
  14. Export the information about the tables DEPT and EMPLOYEE using the Distributed Exporter.