Step 10: Run the Task and Review the Results

Now, if Numeric is selected from the Category of informat drop-down list, the value of the $informat Velocity variable is set to the values in the Numeric informat and Numeric width options.
To verify this behavior:
  1. Click Run Icon to generate the user interface for the task.
  2. Select these options:
    • For the input data source, select WORK.CHARACTER.
      Note: If your SAS Studio session has timed out since you created this data set, this data set is no longer available from the temporary Work library. You must re-create this data set to continue. To re-create the data set, see Create the Example Data Set.
    • Assign Age to the Character variable to convert role.
    • From the Category of informat drop-down list, select Numeric.
    On the Code tab, you should see the following SAS code:
    data WORK.Test;
       set WORK.CHARACTER;
       Age_new=input(Age, BEST10.);
    run;
  3. Click Run Icon to run the task.
The output data set contains the Age_new variable, which is numeric.
Output Data Set for Numeric Variable
If Date is selected from the Category of informat drop-down list, the value of the $informat Velocity variable is set to the value in the Date informat option.
To verify this behavior:
  1. Return to the task interface and select these options:
    • Assign Enroll_Date to the Character variable to convert role.
    • From the Category of informat drop-down list, select Date.
    On the Code tab, you should see the following SAS code:
    data WORK.Test;
       set WORK.CHARACTER;
       Enroll_Date_new=input(Enroll_Date, DDMMYY10.);
    run;
  2. Click Run Icon to run the task.
When you run the task, the output data set contains the _Enroll_Date_new variable, which is numeric. The value of the Enroll_Date_new variable is determined using the DDMMYY10. informat. (For more information about informats, see SAS Formats and Informats: Reference.)
Output Data Set with Enroll_Date_new Variable