Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
11Activity
0 of .
Results for:
No results containing your search query
P. 1
Assignment If

Assignment If

Ratings:
(0)
|Views: 167|Likes:
Published by api-3701108
Small informatica Assingment for the bignners...
Small informatica Assingment for the bignners...

More info:

Published by: api-3701108 on Oct 15, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

Informatica Asssignment
Execute all these one after the other.
1. Attached are two data files, CL_Transaction.dat, Xt_Transaction.dat.The column
names for CL_Transaction.dat file are Policy_Effective_Date, UserId,
Policy_Expiry_date, RecordId, Tran_amount and the column names for
Xt_Transaction.dat file are RecordId, Tran_code, TranId.

2. Taking the CL_Transaction.dat as the source file, lookup the Xt_Transaction.dat
file with RecordId as the lookup column. The final target file that is obtained after
the lookup must contain the following columns.Policy_Ef fectiv e_Date,

Policy_Expiry_date, RecordId, Tran_amount, Tran_code.
3. After doing step 3, to that target file, do the following.
4. Add 5 columns named year, month, date, hrs, minutes, seconds and divide the
first_insert_date column into these 5 fields.
Ex: 19990715093252 => year = 1997, month = 07, date = 15, hrs = 09,
Minutes=32, seconds = 52.
5. Add a new column month_desc for which the output should be the name of month
Ex: month=01 => month_desc = January, month = 02 => month_desc =
Febuary.
6. Create a new column time whose structure should be hrs:minutes:seconds
Ex: hrs=09, minutes = 32, seconds = 52 => time = 09:32:52
7. Create new columns day, dtfmt1, dtfmt2 which conform with the following rules

Ex: year = 1997, month = 07, date = 15 day => Monday or Tuesday or
Wednesday \u2026.. (i.e. the corresponding day of the date), dtfmt1 => 15jul 1997
and dtfmt2 = 07/ 15/1997

8. Add three new columns jobname, startdate, starttimestamp whose values will be Jobname => name of the job that is running, startdate => day when the job started running, starttimestamp => time when the job started running.

9. Add a new field fmt_amt to Format all the tran_amount values into $.
Ex: If the tran_amount = 1200.00 then fmt_amt = $1,200.00
Hint : Use fmt function
10. Get only those records whose year = 1997.

11. In the subroutine that have been created for previously with if code =\u2019I1\u2019 \u2026.. use a CASE statement and execute the same routine and the result must be the same s obtained with IF.

CODE_TEXT FILE

CODE|STRING1|STRING2
102ABCDA2A|12A|
10ACDFG122|ABC|ADC
200ADFLK 1|CAB|BAT
**1B126589|RUN|FUN
112CAKTA82|SACHIN|GANGULY
L23ADEG3 4|DRAG|ADD

123MAPQ 2|FUN|SAND

Activity (11)

You've already reviewed this. Edit your review.
1 hundred reads
TEJASKO liked this
Saravana Kumar liked this
svprasad.t liked this
rajeshitboys liked this
rajveersultan liked this
chatrao liked this
manupesit liked this
northstar1 liked this
padmapk liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->