Solved

How to map and parsing/reading two flat files

Posted on 2012-04-11
3
537 Views
Last Modified: 2012-04-23
Hi Friends,

I have a two flat files with hears/coloums like

Template_ Batch120408.txt

CMD_ID||CAI_CMD||DEPENDANCY_CMD_ID
1||CREATE:HLRSUB:MSISDN,@Param_MSISDN:IMSI,@Param_IMSI:PROFILE,2:RSA,1;||-1
2||SET:HLRSUB:MSISDN,@Param_MSISDN:BS3G,0;||1
3||SET:HLRSUB:IMSI,@Param_IMSI:OBO,1:OBI,2:PDPCP,250;||1
4||SET:ICSSUB:MSISDN,@Param_MSISDN:PAYTYPE,2:SCREENTYPE,1;||-1

Batch120408.txt

Param_MSISDN      Param_IMSI
966540510136      420030100033981
966540510295      420030100033982
966540510296      420030100033983
966540510298      420030100033984

How can i map and parse these two flat files?
0
Comment
Question by:PrakashVarma
3 Comments
 
LVL 40

Accepted Solution

by:
gurvinder372 earned 500 total points
ID: 37831464
parsing first fie should not be a tough job since there seems to be a clear delimiter '||' between columns.
But
-- what are the semantics of these columns?
-- how does the columns map to information in second file?
-- what is the delimiter used in second file?
0
 

Author Comment

by:PrakashVarma
ID: 37831499
- how does the columns map to information in second file?
i need solution for this

-- what is the delimiter used in second file?
comma(,)
0
 
LVL 16

Expert Comment

by:imladris
ID: 37833253
To put it another way: What is the expected output?
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
hibernate example using maven 12 56
maven module vs maven project 3 46
Java Restore security prompts not working 10 56
Java program running SQL query 5 37
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question