Translate to your Language

Tuesday, June 9, 2015

How to FTP a File to Mainframe Using DataStage Parallel

by Unknown  |  in DI at  1:09 PM

I had a requirement where we need to send more than one set of files to Mainframe using Datastage, the catch was, each file had different set columns and length.

I have spent quite a bit of time coming up with a job which can process more than one file with different layout and length

Here you go….





Sequence File Stage :-



 

Transformer :-
 


FTP Plug in Stage:-



 


You must have been confused as why I have defined as delimiter when all mainframe files are Fixed width, the reason is, if you define as fixed width then you have to give the exact length instead I made it as delimited and put delimiter as #$%#(you can even more char) which is not a delimiter and it makes the job to read line by line as it and it send the file to Mainframe



Note :-- I didn’t do any data manipulation during FTP, that’s why I read the entire file as it and send it to FTP, if you want to do data manipulation then you need to bring file layout and it will make the job for processing a particular layout file and not suitable for other layout.

0 comments:

© Copyright © 2015Big Data - DW & BI. by