Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

File Content Conversion using SFTP

$
0
0

Hello All,

 

I have a requirement like, I need to read the text file using SFTP adapter. for this I have used ModuleTransformBean in Module tab of SFTP.

 

Text file contain Header filed values and record types(04,05,06) and then Files Trailer .

 

So I have created structure like as below

 

Capture6.JPG

Since FileHeader and FilerTrailer records will be comes only once per text file so that i have given as Occurrence 1

 

And the parameter that I maintained in the adapter module tab are

 

Case 1:


xml.recordsetStructure - FileHeader,*,Documents,*,Payments,*,PaymentInstruments,*,FileTrailer,*

Now the output Structure is

Capture5.JPG

 

Case 2:

 

Since FileHeader and FilerTrailer records will be occurs only once in a files so I have mentioned the parameters like as below

 

xml.recordsetStructure - FileHeader,1,Documents,*,Payments,*,PaymentInstruments,*,FileTrailer,1

 

xml.recordsetStructureOrder - var

 

Now the structure coming like

 

Capture4.jpg

So As per my requirement I should repeat the Recordset and FileHeader and FileTrailer occurrence should be one

 

Can any one please help in this requirement

 

Thanks in advance.

 

Thanks

Pavan


Viewing all articles
Browse latest Browse all 9091

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>