CDISC Builderâ„¢  2.1 - Installation Test Scripts - %varlen
The following documentation contains test scripts and expected results for validating the CDISC Builder tool.  Do the following to verify proper installation:
  • Perform each test by performing the steps specified by the instructions.  
  • Evaluate the results of each step by comparing them with results described in the Documentation column. 
Script Description Documentation
varlen1.sas Verify that INDATA is missing. Instructions 1
varlen1.log
varlen2.sas Verify that INDATA is invalid. Instructions 2
varlen2.log
varlen3.sas Verify that the library specified by INDATA does not contain any datasets. Instructions 3
varlen3.log
varlen4.sas Verify that ROUND only accepts value is 10, 20 or none. Instructions 4
varlen4.log
varlen5.sas Verify that Output is invalid. Instructions 5
varlen5.log

varlen6a.sas
varlen6b.sas

varlen6c.sas

Test when Round is 10.
Test when Round is 20.
Test when Round is none.
When macro is done, it always creates a backup dataset.
Instructions 6

Instructions 1
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation sub-directory named "saspgm". 

  2. Right mouse click on the varlen1.sas program and select "Batch Submit".

  3. Verify that it generates the file:varlen1.log.

  4. Open the varlen1.log.

  5. Verify that there will be an error message:

    ERROR: [varlen] is missing required parameter INDATA.

Instructions 2
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation sub-directory named "saspgm". 

  2. Right mouse click on the varlen2.sas program and select "Batch Submit".

  3. Verify that it generates the file:varlen2.log.

  4. Open the varlen2.log.

  5. Verify that there will be an error message:

    ERROR: [varlen] has an invalid dataset specified by INDATA.

Instructions 3
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation sub-directory named "saspgm". 

  2. Right mouse click on the varlen3.sas program and select "Batch Submit".

  3. Verify that it generates the file:varlen3.log.

  4. Open the varlen3.log.

  5. Verify that there will be an  error message:

    ERROR: [varlen] the library specified by INDATA does not contain any datasets. 

Instructions 4
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation sub-directory named "saspgm". 

  2. Right mouse click on the varlen4.sas program and select "Batch Submit".

  3. Verify that it generates the file:varlen4.log.

  4. Open the varlen4.log.

  5. Verify that there will be 4 error messages:

    ERROR: [varlen] ROUND parameter must be 10, 20 or none. 

Instructions 5
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation sub-directory named "saspgm". 

  2. Right mouse click on the varlen5.sas program and select "Batch Submit".

  3. Verify that it generates the file:varlen5.log.

  4. Open the varlen5.log.

  5. Verify that there will be 2  error messages:

    ERROR: [varlen] the path of output does not exist.
    ERROR: [varlen] output file name is invalid.

Instructions 6
The following instructions are accomplished through Windows Explorer.

  1. Navigate to the validation sub-directory named "saspgm". 

  2. Right mouse click on the varlen6a.sas program and select "Batch Submit".

  3. Verify that it generates the file:varlen6a.log.

  4. Verify that there is a backup file 'varlen_demo_back.sas7bdat' created in 'data'.

  5. Navigate to the validation sub-directory named "data". 

  6. Open 'varlen_demo.sas7bdat' file and note length of variables: var1, var2,var3 are 20 and var4, var5 are 30.

  7. Delete 'varlen_demo.sas7bdat' and rename ''varlen_demo_back.sas7bdat' to 'varlen_demo.sas7bdat'.

  8. Navigate to the validation sub-directory named "saspgm". 

  9. Right mouse click on the varlen6b.sas program and select "Batch Submit".

  10. Verify that it generates the file:varlen6b.log.

  11. Verify that there is a backup file 'varlen_demo_back.sas7bdat' created in 'data'.

  12. Navigate to the validation sub-directory named "data". 

  13. Open 'varlen_demo.sas7bdat' file and note length of variables: var1, var2,var3 are 30 and var4, var5 are 40.

  14. Delete 'varlen_demo.sas7bdat' and rename ''varlen_demo_back.sas7bdat' to 'varlen_demo.sas7bdat'.

  15. Navigate to the validation sub-directory named "saspgm". 

  16. Right mouse click on the varlen6c.sas program and select "Batch Submit".

  17. Verify that it generates the file:varlen6c.log.

  18. Verify that there is a backup file 'varlen_demo_back.sas7bdat' created in 'data'.

  19. Navigate to the validation sub-directory named "data". 

  20. Open 'varlen_demo.sas7bdat' file and note length of variables: 

    length of var1 is 12.
    length of var2 is 11.
    length of var3 is 11.
    length of var4 is 23.
    length of var5 is 26.

For more information, please contact MXI .

 
     Meta-Xceed Inc. © 2009