Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Re: Sender File Adapter File Contect Conversion - Field Lengths Unknown - How to configure ONLY with endSeparator & RecordType

$
0
0

Hello! All

 

I have the following File Format and do not have and fieldFixedLengths specified - Can you please help with any inputs on Content Conversion parameters to use to convert XML to Flat File as I need to Identify Header and Detail and ONLY need the whole of the line to be passed  as one string based on the record type:

 

RecordType Values:

Header -- 111

LineItem -- 222

 

RecordSet Structure:

Header,1,Detail,*

 

endSeparator:

"|"

 

fieldFixedLengths:

Unknown - will vary for every line as seen below

 

File Sample:

111099900006/20/2013399900000039990000003999010000003999000000000000000|

222425000000042500000004250000000425001000000425425000000042500000004250000000425001000000425|

2224250000000425000000042500000004250010000004254250000000425000000042500000004250010000004254250000000425001000000425|

22242500000004250000000425000000042500100000042542500000004250000000425|

22242500000004250000000425000000042500100000042542|

2224250000000425000000042500000004250010000004254250000000425000000042500000004250010000004254250000000425001000000425000425|

 

Fields:

I only need to get the Header record Type & the rest of the string or even the whole string is fine - which I can sub-string later in the mapping.

 

Final XML should looks like:

 

<Header>

<String1>

111

</String1>

<String2>

099900006/20/2013399900000039990000003999010000003999000000000000000

</String2>

</Header>

<Detail>

<String1>

222

</String1>

<String2>

425000000042500000004250000000425001000000425425000000042500000004250000000425001000000425

</String2>

</Detail>

.

.

.

.

<Detail>

<String1>

222

</String1>

<String2>

2224250000000425000000042500000004250010000004254250000000425000000042500000004250010000004254250000000425001000000425000425

</String2>

</Detail>


Can you please let me know if we can identify the record type without specifying the FiledFixedLenghts - and ONLY going by endSeparator.

 

Your help is greatly appreciated!!

 

Thank you,

Ritu


Viewing all articles
Browse latest Browse all 7030

Trending Articles



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