How to create Target Files Dynamically, If Deptno=10 then create Target file as DEPT10.txt, If Deptno=20 then create Target file as DEPT20.txt, If Deptno=30 then create Target file as DEPT30.txt
You can achieve this by following below steps in Informatica.
v_curr_dept_id= dept_id
v_flag = IIF(v_curr_dept_id=v_prev_dept_id,0,1)
v_prev_dept_id = dept_id
o_flag = v_flag
o_file_name = dept_id||'.txt'
IIF(o_flag = 1, TC_COMMIT_BEFORE, TC_CONTINUE_TRANSACTION)
SQ.... SRT > EXP > TXN >TGT