Nasja,
Looks this sample.
package sample;
record Outfile type CSVRecord{fileName = "Outfile"}
recOutfile string;
end
record Work type BasicRecord
03 Field_dim_1 [3];
05 Field_dim_2 char(15)[4];
end
program sample2 type BasicProgram
Outfile Outfile;
Work Work;
function main()
Outfile.resourceAssociation = "C:\\TEMP\\output.TXT";
set Outfile empty;
Work.Field_dim_2[1][1] = "Row-1/Col-1 ";
Work.Field_dim_2[1][2] = "Row-1/Col-2 ";
Work.Field_dim_2[1][3] = "Row-1/Col-3 ";
Work.Field_dim_2[1][4] = "Row-1/Col-4 ";
Outfile.recOutfile = Work.Field_dim_1[1];
SysLib.writeStdout(Outfile.recOutfile);
Work.Field_dim_2[2][1] = "Row-2/Col-1 ";
Work.Field_dim_2[2][2] = "Row-2/Col-2 ";
Work.Field_dim_2[2][3] = "Row-2/Col-3 ";
Work.Field_dim_2[2][4] = "Row-2/Col-4 ";
Outfile.recOutfile = Work.Field_dim_1[2];
SysLib.writeStdout(Outfile.recOutfile);
Work.Field_dim_2[3][1] = "Row-3/Col-1 ";
Work.Field_dim_2[3][2] = "Row-3/Col-2 ";
Work.Field_dim_2[3][3] = "Row-3/Col-3 ";
Work.Field_dim_2[3][4] = "Row-3/Col-4 ";
Outfile.recOutfile = Work.Field_dim_1[3];
SysLib.writeStdout(Outfile.recOutfile);
end
end
Regards.
Hsieh