JSL is showing some error in surv_pt_main line.
I wrote the script as follows:
dt=data table("Data Sheet");
<<Tabulate(
Add Table(
Column Table( Grouping Columns( :User Status Task ) ), //User Status Task has different status everytime and each has a value of 0 or 1. Each time depending on the data, some options can be missing.
Row Table( Grouping Columns( :Serial Number,:Created by) )
))
<< Make Into Data Table;
name_list={"APPR","SEQU APPR","SEQU HAPP","HAPP","RJCT","SEQU RJCT","SEQU HREJ","HREJ","DREQ","SEQU DREQ"}; //I have these options under the drop down list column"User Status Task". I dont have the same drop downs everytime as data is missing in that column.
main_names=create_list<<Get Column Names(String);
for(i=0,i<=nitems(name_list),i++,
if(contains(main_names,name_list)==0,
surv_pt_main<<New Column(name_list,Number,<<set each value(1000)); // I set each value as 1000 as I have 0 or 1 already for those options
);
);
hope some one can help me with this.
thanks