Create Simple Data Generation Code
 
         
          
            	 
             
               		
               - Launch the New Code Wizard from the 
                  		  New Code icon. 
                  		
               
-  Specify the proper machine and company. 
                  		
               
-  Give the code the name 
                  		  SIMPLEC and provide a description. 
                  		
               
-  Click 
                  		  Apply. 
                  		  
                  This creates the code. 
                     		  
                   
- 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.
                  		
               
-  Ensure that the 
                  		  TGT.EMPLOYEE table appears before the 
                  		  TGT.DEPT table. If now, reorder the tables using the arrows on the right.
                  		
               
-  Right-click on 
                  		  TGT.EMPLOYEE; then select 
                  		  Set directive from the context menu.
                  		
               
- Select the 
                  		  DEPT column; then right-click and select 
                  		  Assign output class specifying the 
                  		  DEPT column. 
                  		
               
- Right-click 
                  		  TGT.EMPLOYEE; then select 
                  		  Don’t create output on the context menu. 
                  		
               
-  Right-click 
                  		  TGT.DEPT; then select 
                  		  Set directive from the context menu.
                  		
               
- Right-click the COD_CUS column; then select 
                  		  Set directive from the context menu, specifying 
                  		  Other file dependencies as the directive type. 
                  		
               
- Right-click 
                  		  TGT.EMPLOYEE; then select 
                  		  Set directive on the context menu. 
                  		
               
- Select the 
                  		  DNAME column; then select 
                  		  Set directive from the context menu, specifying 
                  		  Dictionary as the directive type and 
                  		  USDCHSUR as dictionary name. 
                  		
               
-  Export the information about the tables DEPT and EMPLOYEE using the Distributed Exporter.