Abinitio Interview Question 3




Watch my YouTube video for explanation :


Please look into the class notes here for your references:

Prepare a DML which can read the records as follows.

DML
conditional
$> cat Oregon-revenue.dat
H,Revenue report for Oregon
D,D1,D2,5000
D,D11,D22,6000
...
...
...
D,D1n,D2n,50000
T,24-07-2022,89765

record
string(",") rec_type;
if(rec_type=='H')
string("\n") header;
else if(rec_type=='D')
string(",") data1;
string(",") data2;
decimal("\n") amt;
else
date("MM-DD-YYYY")(",") tr_date;
decimal("\n") tran_amt;
end;

Fore more Abinitio, AWS and data engineering videos please subscribe , view , like and share my YouTube channel 

Click DataPundit

Comments

Popular posts from this blog

Abinitio Interview Question # 1 - Write Multiple Files in Abinitio

Next In Sequence in ABinitio | How next_in_sequence() works in MFS