Hello! Please,help, how can I write a number in the column name when creating the tap_table repository? I need to create a table where the first column is called payment, and the rest have a name - numbers from 1 to 30. All fields are of type float. The code below indicates how the recording occurs. but there is an error in the line payments.add_column (i_column_char, 'float'); It does not allow you to write a number as a name. How to write it down correctly? Convert a number to varchar type. Did not help. The translation was written as dcl varchar i_column_char; i_column_char= put(i_column ,4.0);
method execute(varchar(50) AppId,double RtdmId, varchar(50) NaturalPersonID, double CreID, in_out double incomeBKI_out, in_out package tap_table payments);
dcl int i_column interval_out;
dcl varchar i_column_char;
i_column=1;
payments.add_column('payment','float');
do while (i_column <= 30);
payments.add_column(i_column_char,'float');
i_column=i_colimn+1;
end;
end;
... View more