.LAYER ADD DATASET TM 
This subroutine adds a Data Set Template to the current Data Group.
  Usage: 
      PASS         <data_set_name>            FIELD            SHARE? N
      GOSUB    0CD .LAYER ADD DATASET TM
      IF       0CD .LAYER ADD DATASET TM      NE
  Description: 
This subroutine adds a data set template to the current data group. The chart must have been initialized as an "XY Chart" via 
.CHART INITIALIZE, a layer created via 
.XY ADD BAR LAYER and a data group added via 
.LAYER ADD DATA GROUP before calling this routine.
<data_set_name> is optional. If passed, it will become the name of this data set template.
The data set template becomes the "current" data set template.
See 
Datasets Overview for more information on working with data.
Read what other users have said about this page or add your own comments.
-- 
JeanNeron - 2011-11-03