I'm using EG 3 and currently I have created some SAS codes to be used in the process. How do I link a table to my created SAS codes? Right now when I execute the whole process the sas codes run even if a table that it is dependent on does not exist yet.
IF NRIC_FIN_NUMBER = ' ' AND RACE = ' ' AND GENDER = ' ' AND ECONOMIC_STATUS = ' ' AND
HIGHEST_EDUCATIONAL_LEVEL = ' ' THEN DO;
RACE = 'INFORMATION NOT AVAILABLE';
GENDER = 'INFORMATION NOT AVAILABLE';
ECONOMIC_STATUS = 'INFORMATION NOT AVAILABLE';
HIGHEST_EDUCATIONAL_LEVEL = 'INFORMATION NOT AVAILABLE';
When I execute the whole process flow, this data step is executed even if table PASSION1 is not yet prepared.
1) I would recommend you have as part of your project an "Assign Library ..." object that creates an EGTASK libary for that project, pointing to an explicit directory for only that project. It makes maintenance and storage control easier.
2) You can link the table to the code by right clicking on the table and selecting the "Link to ..." menu option.
3) I would recommend changing your code to use:
4) If you simply run the code task, it will run, independently of whatever else has happened. But, if you select the predecessor table, and select "Run branch from ..." EG will run the code set(s) in sequence, if the link is established (#2 above).