Solved

How to map and parsing/reading two flat files

Posted on 2012-04-11
3
544 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hibernate jars 4 61
ejb stateless example 2 44
ejb entity bean example 2 38
Given a github repo find email address of all collaborators in that repo 1 36
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This video teaches viewers about errors in exception handling.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…

730 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