Abinitio Interview Question # 1 - Write Multiple Files in Abinitio
Question : I get records of various region in huge volume ,
we want to write the records in region specific files.
How to achieve that?
View the explanation in the below video:
Answer: -WMF
WMF:
filename::get_filename(in)=
begin
let string("") l_filename=string_substring(in.data.region);
filename::string_concat($AI_SERIAL,"/",l_filename.dat);
end;
out::reformat(in)=
begin
out::in.data;
end;
OUTPUT DML-:
DML
record
string(int) filename;
string(integer(4)) file_contents;
end;
RMF:
filename::get_filename(in)=
begin
filename::string_concat($AI_SERIAL,"/",in.filename);
end;
out::reformat(read,filename,in)=
begin
out.file_contents::read;
out.filename::filename;
end;
Please view my youtube channel DataPundit
Comments
Post a Comment