convert SWIFT message to XML file (or) flat file

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
kkumardatastage
Participant
Posts: 84
Joined: Sat Jul 19, 2008 8:50 am

convert SWIFT message to XML file (or) flat file

Post by kkumardatastage »

hi
please can any one help me.
i got a task to convert a SWIFT message and this SWIFT message should be convert into the flat file (or) XML file. this XML file (or) flat file i got to use it in datastage parallel for my job.
the SWIFT message, we'd like to reformat it to a pipe delimited file too.
The end result should be a pipe delimited file with column heading (use each tag for now).
The value for each row,:
Repeat the values in {1:} and {2},
Repeat values for all tags except tag :61:.
The only difference in each row is the value in tag :61:
It's ":<tag>:<value >". The tags for each kind of message are SWIFT standard

the SWIFT message look like
for ex:

{1:F01BOFAUSNYJXXX4321000123}{2:I103BANKDEFFAXXXN2 020}{3:{103:CAD}}{4:
:20:NY20040126000111
:23B:CRED
:32A:040116USD1000000,00
:50K:/987654321
Big Deal Real Estate
Madison Avenue
New York, NY USA
:57A:/654321
NOSCATTT
:59:/1234567890123
I. Buy Buildings
200 Front Street
Toronto, Ontario
Canada
:70:re real estate purchase
10000 King Street East
Toronto
:71A:OUR
-}{5:{MAC:23456789}{PAC:23456789}{CHK:123456789012} {SYS:1231313}{TNG:}{PDE:12345}{DLM:}}

thanks
:(
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

...consider employing MapStage, which uses TX to do the SWIFT reading, putting the SWIFT into columns that are more easily consumed by DataStage. TX comes "out of the box" with SWIFT meta data maintained and kept up-to-date with the standard.

...of course, this means that you must also have a license for TX, although that license comes with some special pricing when its part of MapStage for DataStage integration.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
laknar
Participant
Posts: 162
Joined: Thu Apr 26, 2007 5:59 am
Location: Chennai

Post by laknar »

Is Mapstage is called as Datastage TX Job in Parallel Job processing Stage.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

laknar wrote:Is Mapstage is called as Datastage TX Job in Parallel Job processing Stage.
That's the bunny.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kkumardatastage
Participant
Posts: 84
Joined: Sat Jul 19, 2008 8:50 am

Post by kkumardatastage »

pls i did't get you properly. pls can you tell me in detail. about the conversion.
thank you.
eostic
Premium Member
Premium Member
Posts: 3838
Joined: Mon Oct 17, 2005 9:34 am

Post by eostic »

There is an IBM product offering called WebSphere TX. While part of Ascential, it was called DataStage TX and is the former Mercator product. It comes bundled with metadata to read things like SWIFT.

MapStage is the stage/utility that lets regular DataStage reach out to TX and invoke what is called a TX map, so that you can use functionality like it's SWIFT adapter to reader SWIFT sources and bring them into regular DS.

Ernie
Ernie Ostic

blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

To be able to use MapStage you will, naturally, have to have a WebSphere TX map that it can invoke and that, in turn, means that you will have licensed (purchased) WebSphere TX.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply