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

Handling Flat files from mainframe

$
0
0

Hi,

 

I have a scenario. Mainframe application uploads a flat file to a FTP server(based on UNIX). Uploading is being done in BINARY mode.

 

Data on mainframe looks like below (Record length is 80 characters)

H004981429001015544655526    trailing spaces for every record

H004981328001019383824047

H0049813790010000455933

 

When we look into the file that is uploaded the data looks like below:

Èððôùøñôòùððñðñõõôôöõõõòö@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ðððððñððÈððôùøñóòøððñðñùóøóøòôðô÷@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ðððððòððÈððôùøñó÷ùððñððððôõõùóó@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ðððððóðð

 

I requested mainframe people to send in in ASCII format for testing purposes and the data looks similar to how it looks on mainframe and using the below File content conversion when the file was picked up it was processed properly.

 

1.png

 

But when I picked the Binary file this all what i got:

 

<?xml version="1.0" encoding="utf-8" ?> 

-<ns:MT_INTF3_S xmlns:ns="http://**/in/xmlto_ffile">
-<Record>
-<Header>
<REC_TYPE>È</REC_TYPE> 
<DOC_NUM>ððôùøñôòù</DOC_NUM> 
<DIST>ððñðñõõô</DIST> 
<PO_NUM>ôöõõõòö</PO_NUM>

</Header>

</Record>

</ns:MT_INTF3_S>

 

Only One record was picked up. Thought formatting could be handled in Mapping. But as it is reading only one record I am unable to proceed.

 

When i checked in web, no CR, LF characters will be inserted while uploading in binary format.

 

Please help.


Viewing all articles
Browse latest Browse all 7030

Trending Articles



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