SlideShare a Scribd company logo
Informatica Reusable Component
Date for Day Mapplet
Copyright © 2000, Wipro Technologies Confidential Page 1 of 7
INFORMATICA REUSABLE COMPONENT
DATE FOR DAY MAPPLET
BY
DIVYA SETHURAMAN
DATE: 05-MAR-2008
Informatica Reusable Component
Date for Day Mapplet
Copyright © 2000, Wipro Technologies Confidential Page 2 of 7
DOCUMENT HISTORY
VERSION AUTHOR AMENDMENT DATE AMENDMENT DESCRIPTIO N
v1.00 Divya Sethuraman Mar 05, 2008 First Version
Informatica Reusable Component
Date for Day Mapplet
Copyright © 2000, Wipro Technologies Confidential Page 3 of 7
TABLE OF CONTENTS
1. Introduction............................................................................................................................................4
2. Implementation and Integration ..............................................................................................................5
3. Code ......................................................................................................................................................6
3.1 Reusable Component ..........................................................................................................................6
3.2 Test Code ...........................................................................................................................................6
4. Test Results............................................................................................................................................6
Informatica Reusable Component
Date for Day Mapplet
Copyright © 2000, Wipro Technologies Confidential Page 4 of 7
1. Introduction
There are scenarios where in Informatica we need to calculate different date based on the
business requirement.
To cater to this need, Reusable Mapplet has been developed which can used extensively as a
transformation itself.
Informatica Reusable Component
Date for Day Mapplet
Copyright © 2000, Wipro Technologies Confidential Page 5 of 7
2. Implementation and Integration
Date will be calculated for the given day like first Friday of the month, last Friday of the
month, last Friday, next Friday etc.,. With respect to given date.
Three inputs have to be passed to the mapplet
1) Any Date
2) Day in the format given (MON/TUE/WED/THU/FRI/SAT/SUN)
3) Indicator that tells which date to be calculated. Below is the list of indicators that are
supported in the mapplet. Friday is taken as example.
CMF: First Friday of the Current Month.
CML: Last Friday of the Current Month.
CYF: First Friday of the Current Year.
CYL: Last Friday of the Current Year.
CMP: Previous Friday of the given date.
CMN: Next Friday of the given date.
PMF: First Friday of the Previous Month
PML: Last Friday of the Previous Month
NMF: First Friday of the Next Month
NML: Last Friday of the Next Month
Example:
Suppose we pass the following inputs to the mapplet
INPUT:
Date: 12/31/2008 00:0000
Day: FRI
Indicator: CMF
OUTPUT:
Then the mapplet will return the value 12/05/2008 which is the first Friday in the current
month.
Informatica Reusable Component
Date for Day Mapplet
Copyright © 2000, Wipro Technologies Confidential Page 6 of 7
3. Code
Code will be part of the zip file that has been uploaded into the System.
3.1 Reusable Component
mplt_FetchDate4Day (In attachment the code name will be mplt_FetchDate4Day.xml)
3.2 Test Code
Mapping Name: m_TestDate4Day (In attachment the Test mapping name will be
m_TestDate4Day.xml)
WF Name: wkf_TestDate4Day (In attachment the Workflow name will be
wkf_TestDate4Day.xml)
4. Test Results
Example 1:
Input file: InFile
InFile.txt
Screen Shot:
Informatica Reusable Component
Date for Day Mapplet
Copyright © 2000, Wipro Technologies Confidential Page 7 of 7
Output Result:
Output File: OutFile
OutFile
Screen Shot:

More Related Content

Similar to Informatica reusable mapplett_date4day

Ultima mentor version_7_0_-_required_data_inputs_for_huawei
Ultima mentor version_7_0_-_required_data_inputs_for_huaweiUltima mentor version_7_0_-_required_data_inputs_for_huawei
Ultima mentor version_7_0_-_required_data_inputs_for_huawei
ergash nigmatov
 
Huawei p20(eml) l09 l29v100r001 advanced maintenance manual v2.1-compressed
Huawei p20(eml) l09 l29v100r001 advanced maintenance manual v2.1-compressedHuawei p20(eml) l09 l29v100r001 advanced maintenance manual v2.1-compressed
Huawei p20(eml) l09 l29v100r001 advanced maintenance manual v2.1-compressed
Mario Dominguez Zapata
 
Lateral loads manual
Lateral loads manualLateral loads manual
Lateral loads manual
Leoncio Enriquez Zarsosa
 
CA-PMM Syste Recommendations v3
CA-PMM Syste Recommendations v3CA-PMM Syste Recommendations v3
CA-PMM Syste Recommendations v3
Matthew Gibbs
 
Exif2.2 MetaData Spec
Exif2.2 MetaData SpecExif2.2 MetaData Spec
Exif2.2 MetaData Spec
sam Cyberspace
 
SwitchRecon_SOP
SwitchRecon_SOPSwitchRecon_SOP
SwitchRecon_SOP
Peni Tuiloma
 
D7.1 Metadata Deployment Stage 1
D7.1 Metadata Deployment Stage 1D7.1 Metadata Deployment Stage 1
D7.1 Metadata Deployment Stage 1
plan4all
 
MITRE A-TAK Design Philosophy
MITRE A-TAK Design PhilosophyMITRE A-TAK Design Philosophy
MITRE A-TAK Design Philosophy
tom termini
 
Information Technology Contingency Plan (Template)
Information Technology Contingency Plan (Template)Information Technology Contingency Plan (Template)
Information Technology Contingency Plan (Template)
GovCloud Network
 
Detailed System Specification Document | SEPE module
Detailed System Specification Document | SEPE moduleDetailed System Specification Document | SEPE module
Detailed System Specification Document | SEPE module
Darren Martin Leith
 
Fresh Thinking to SAFENET for IoT
 Fresh Thinking to SAFENET for IoT Fresh Thinking to SAFENET for IoT
Fresh Thinking to SAFENET for IoT
IET India
 
Lte introduction into_gsm-umts
Lte introduction into_gsm-umtsLte introduction into_gsm-umts
Lte introduction into_gsm-umts
Morg
 
The Endpoint Security Paradox
The Endpoint Security ParadoxThe Endpoint Security Paradox
The Endpoint Security Paradox
Symantec
 
Calmet users guide
Calmet users guideCalmet users guide
Calmet users guide
Francisco Lang Tasso
 
Neural Network Toolbox MATLAB
Neural Network Toolbox MATLABNeural Network Toolbox MATLAB
Neural Network Toolbox MATLAB
ESCOM
 
Client Name .docx
Client Name    .docxClient Name    .docx
Client Name .docx
bartholomeocoombs
 
Client Name .docx
Client Name    .docxClient Name    .docx
Client Name .docx
mccormicknadine86
 
C sharp notes
C sharp notesC sharp notes
C sharp notes
Aravindharamanan S
 
Tiny OS
Tiny OSTiny OS
D10_8-How-to-ensure-sustainability-of-Green-eMotion_public
D10_8-How-to-ensure-sustainability-of-Green-eMotion_publicD10_8-How-to-ensure-sustainability-of-Green-eMotion_public
D10_8-How-to-ensure-sustainability-of-Green-eMotion_public
Aura Caramizaru
 

Similar to Informatica reusable mapplett_date4day (20)

Ultima mentor version_7_0_-_required_data_inputs_for_huawei
Ultima mentor version_7_0_-_required_data_inputs_for_huaweiUltima mentor version_7_0_-_required_data_inputs_for_huawei
Ultima mentor version_7_0_-_required_data_inputs_for_huawei
 
Huawei p20(eml) l09 l29v100r001 advanced maintenance manual v2.1-compressed
Huawei p20(eml) l09 l29v100r001 advanced maintenance manual v2.1-compressedHuawei p20(eml) l09 l29v100r001 advanced maintenance manual v2.1-compressed
Huawei p20(eml) l09 l29v100r001 advanced maintenance manual v2.1-compressed
 
Lateral loads manual
Lateral loads manualLateral loads manual
Lateral loads manual
 
CA-PMM Syste Recommendations v3
CA-PMM Syste Recommendations v3CA-PMM Syste Recommendations v3
CA-PMM Syste Recommendations v3
 
Exif2.2 MetaData Spec
Exif2.2 MetaData SpecExif2.2 MetaData Spec
Exif2.2 MetaData Spec
 
SwitchRecon_SOP
SwitchRecon_SOPSwitchRecon_SOP
SwitchRecon_SOP
 
D7.1 Metadata Deployment Stage 1
D7.1 Metadata Deployment Stage 1D7.1 Metadata Deployment Stage 1
D7.1 Metadata Deployment Stage 1
 
MITRE A-TAK Design Philosophy
MITRE A-TAK Design PhilosophyMITRE A-TAK Design Philosophy
MITRE A-TAK Design Philosophy
 
Information Technology Contingency Plan (Template)
Information Technology Contingency Plan (Template)Information Technology Contingency Plan (Template)
Information Technology Contingency Plan (Template)
 
Detailed System Specification Document | SEPE module
Detailed System Specification Document | SEPE moduleDetailed System Specification Document | SEPE module
Detailed System Specification Document | SEPE module
 
Fresh Thinking to SAFENET for IoT
 Fresh Thinking to SAFENET for IoT Fresh Thinking to SAFENET for IoT
Fresh Thinking to SAFENET for IoT
 
Lte introduction into_gsm-umts
Lte introduction into_gsm-umtsLte introduction into_gsm-umts
Lte introduction into_gsm-umts
 
The Endpoint Security Paradox
The Endpoint Security ParadoxThe Endpoint Security Paradox
The Endpoint Security Paradox
 
Calmet users guide
Calmet users guideCalmet users guide
Calmet users guide
 
Neural Network Toolbox MATLAB
Neural Network Toolbox MATLABNeural Network Toolbox MATLAB
Neural Network Toolbox MATLAB
 
Client Name .docx
Client Name    .docxClient Name    .docx
Client Name .docx
 
Client Name .docx
Client Name    .docxClient Name    .docx
Client Name .docx
 
C sharp notes
C sharp notesC sharp notes
C sharp notes
 
Tiny OS
Tiny OSTiny OS
Tiny OS
 
D10_8-How-to-ensure-sustainability-of-Green-eMotion_public
D10_8-How-to-ensure-sustainability-of-Green-eMotion_publicD10_8-How-to-ensure-sustainability-of-Green-eMotion_public
D10_8-How-to-ensure-sustainability-of-Green-eMotion_public
 

Recently uploaded

AWS User Group Torino 2024 #3 - 18/06/2024
AWS User Group Torino 2024 #3 - 18/06/2024AWS User Group Torino 2024 #3 - 18/06/2024
AWS User Group Torino 2024 #3 - 18/06/2024
Guido Maria Nebiolo
 
SASi-SPi Science Policy Lab Pre-engagement
SASi-SPi Science Policy Lab Pre-engagementSASi-SPi Science Policy Lab Pre-engagement
SASi-SPi Science Policy Lab Pre-engagement
Francois Stepman
 
Kalyan chart satta matka guessing result
Kalyan chart satta matka guessing resultKalyan chart satta matka guessing result
Kalyan chart satta matka guessing result
sanammadhu484
 
Data Processing in PHP - PHPers 2024 Poznań
Data Processing in PHP - PHPers 2024 PoznańData Processing in PHP - PHPers 2024 Poznań
Data Processing in PHP - PHPers 2024 Poznań
Norbert Orzechowicz
 
怎么办理(lincoln学位证书)英国林肯大学毕业证文凭学位证书原版一模一样
怎么办理(lincoln学位证书)英国林肯大学毕业证文凭学位证书原版一模一样怎么办理(lincoln学位证书)英国林肯大学毕业证文凭学位证书原版一模一样
怎么办理(lincoln学位证书)英国林肯大学毕业证文凭学位证书原版一模一样
kekzed
 
Bridging the visual gap between cultural heritage and digital scholarship
Bridging the visual gap between cultural heritage and digital scholarshipBridging the visual gap between cultural heritage and digital scholarship
Bridging the visual gap between cultural heritage and digital scholarship
Inesm9
 
ServiceNow CIS-ITSM Exam Dumps & Questions [2024]
ServiceNow CIS-ITSM Exam Dumps & Questions [2024]ServiceNow CIS-ITSM Exam Dumps & Questions [2024]
ServiceNow CIS-ITSM Exam Dumps & Questions [2024]
SkillCertProExams
 
Genesis chapter 3 Isaiah Scudder.pptx
Genesis    chapter 3 Isaiah Scudder.pptxGenesis    chapter 3 Isaiah Scudder.pptx
Genesis chapter 3 Isaiah Scudder.pptx
FamilyWorshipCenterD
 
Presentation agenda of three-day conference
Presentation agenda of three-day conferencePresentation agenda of three-day conference
Presentation agenda of three-day conference
bernadettalaurentia1
 
2023 Ukraine Crisis Media Center Finance Balance
2023 Ukraine Crisis Media Center Finance Balance2023 Ukraine Crisis Media Center Finance Balance
2023 Ukraine Crisis Media Center Finance Balance
UkraineCrisisMediaCenter
 
一比一原版(unc毕业证书)美国北卡罗来纳大学教堂山分校毕业证如何办理
一比一原版(unc毕业证书)美国北卡罗来纳大学教堂山分校毕业证如何办理一比一原版(unc毕业证书)美国北卡罗来纳大学教堂山分校毕业证如何办理
一比一原版(unc毕业证书)美国北卡罗来纳大学教堂山分校毕业证如何办理
gfysze
 
2023 Ukraine Crisis Media Center Financial Report
2023 Ukraine Crisis Media Center Financial Report2023 Ukraine Crisis Media Center Financial Report
2023 Ukraine Crisis Media Center Financial Report
UkraineCrisisMediaCenter
 
Legislation And Regulations For Import, Manufacture,.pptx
Legislation And Regulations For Import, Manufacture,.pptxLegislation And Regulations For Import, Manufacture,.pptx
Legislation And Regulations For Import, Manufacture,.pptx
Charmi13
 
2023 Ukraine Crisis Media Center Annual Report
2023 Ukraine Crisis Media Center Annual Report2023 Ukraine Crisis Media Center Annual Report
2023 Ukraine Crisis Media Center Annual Report
UkraineCrisisMediaCenter
 
ACTIVE IMPLANTABLE MEDICAL DEVICE IN EUROPE
ACTIVE IMPLANTABLE MEDICAL DEVICE IN EUROPEACTIVE IMPLANTABLE MEDICAL DEVICE IN EUROPE
ACTIVE IMPLANTABLE MEDICAL DEVICE IN EUROPE
Charmi13
 
Prsentation for VIVA Welike project 1semester.pptx
Prsentation for VIVA Welike project 1semester.pptxPrsentation for VIVA Welike project 1semester.pptx
Prsentation for VIVA Welike project 1semester.pptx
prafulpawar29
 
Cybersecurity Presentation PowerPoint!!!
Cybersecurity Presentation PowerPoint!!!Cybersecurity Presentation PowerPoint!!!
Cybersecurity Presentation PowerPoint!!!
arichardson21686
 
Gamify it until you make it Improving Agile Development and Operations with ...
Gamify it until you make it  Improving Agile Development and Operations with ...Gamify it until you make it  Improving Agile Development and Operations with ...
Gamify it until you make it Improving Agile Development and Operations with ...
Ben Linders
 
Proposal: The Ark Project and The BEEP Inc
Proposal: The Ark Project and The BEEP IncProposal: The Ark Project and The BEEP Inc
Proposal: The Ark Project and The BEEP Inc
Raheem Muhammad
 

Recently uploaded (19)

AWS User Group Torino 2024 #3 - 18/06/2024
AWS User Group Torino 2024 #3 - 18/06/2024AWS User Group Torino 2024 #3 - 18/06/2024
AWS User Group Torino 2024 #3 - 18/06/2024
 
SASi-SPi Science Policy Lab Pre-engagement
SASi-SPi Science Policy Lab Pre-engagementSASi-SPi Science Policy Lab Pre-engagement
SASi-SPi Science Policy Lab Pre-engagement
 
Kalyan chart satta matka guessing result
Kalyan chart satta matka guessing resultKalyan chart satta matka guessing result
Kalyan chart satta matka guessing result
 
Data Processing in PHP - PHPers 2024 Poznań
Data Processing in PHP - PHPers 2024 PoznańData Processing in PHP - PHPers 2024 Poznań
Data Processing in PHP - PHPers 2024 Poznań
 
怎么办理(lincoln学位证书)英国林肯大学毕业证文凭学位证书原版一模一样
怎么办理(lincoln学位证书)英国林肯大学毕业证文凭学位证书原版一模一样怎么办理(lincoln学位证书)英国林肯大学毕业证文凭学位证书原版一模一样
怎么办理(lincoln学位证书)英国林肯大学毕业证文凭学位证书原版一模一样
 
Bridging the visual gap between cultural heritage and digital scholarship
Bridging the visual gap between cultural heritage and digital scholarshipBridging the visual gap between cultural heritage and digital scholarship
Bridging the visual gap between cultural heritage and digital scholarship
 
ServiceNow CIS-ITSM Exam Dumps & Questions [2024]
ServiceNow CIS-ITSM Exam Dumps & Questions [2024]ServiceNow CIS-ITSM Exam Dumps & Questions [2024]
ServiceNow CIS-ITSM Exam Dumps & Questions [2024]
 
Genesis chapter 3 Isaiah Scudder.pptx
Genesis    chapter 3 Isaiah Scudder.pptxGenesis    chapter 3 Isaiah Scudder.pptx
Genesis chapter 3 Isaiah Scudder.pptx
 
Presentation agenda of three-day conference
Presentation agenda of three-day conferencePresentation agenda of three-day conference
Presentation agenda of three-day conference
 
2023 Ukraine Crisis Media Center Finance Balance
2023 Ukraine Crisis Media Center Finance Balance2023 Ukraine Crisis Media Center Finance Balance
2023 Ukraine Crisis Media Center Finance Balance
 
一比一原版(unc毕业证书)美国北卡罗来纳大学教堂山分校毕业证如何办理
一比一原版(unc毕业证书)美国北卡罗来纳大学教堂山分校毕业证如何办理一比一原版(unc毕业证书)美国北卡罗来纳大学教堂山分校毕业证如何办理
一比一原版(unc毕业证书)美国北卡罗来纳大学教堂山分校毕业证如何办理
 
2023 Ukraine Crisis Media Center Financial Report
2023 Ukraine Crisis Media Center Financial Report2023 Ukraine Crisis Media Center Financial Report
2023 Ukraine Crisis Media Center Financial Report
 
Legislation And Regulations For Import, Manufacture,.pptx
Legislation And Regulations For Import, Manufacture,.pptxLegislation And Regulations For Import, Manufacture,.pptx
Legislation And Regulations For Import, Manufacture,.pptx
 
2023 Ukraine Crisis Media Center Annual Report
2023 Ukraine Crisis Media Center Annual Report2023 Ukraine Crisis Media Center Annual Report
2023 Ukraine Crisis Media Center Annual Report
 
ACTIVE IMPLANTABLE MEDICAL DEVICE IN EUROPE
ACTIVE IMPLANTABLE MEDICAL DEVICE IN EUROPEACTIVE IMPLANTABLE MEDICAL DEVICE IN EUROPE
ACTIVE IMPLANTABLE MEDICAL DEVICE IN EUROPE
 
Prsentation for VIVA Welike project 1semester.pptx
Prsentation for VIVA Welike project 1semester.pptxPrsentation for VIVA Welike project 1semester.pptx
Prsentation for VIVA Welike project 1semester.pptx
 
Cybersecurity Presentation PowerPoint!!!
Cybersecurity Presentation PowerPoint!!!Cybersecurity Presentation PowerPoint!!!
Cybersecurity Presentation PowerPoint!!!
 
Gamify it until you make it Improving Agile Development and Operations with ...
Gamify it until you make it  Improving Agile Development and Operations with ...Gamify it until you make it  Improving Agile Development and Operations with ...
Gamify it until you make it Improving Agile Development and Operations with ...
 
Proposal: The Ark Project and The BEEP Inc
Proposal: The Ark Project and The BEEP IncProposal: The Ark Project and The BEEP Inc
Proposal: The Ark Project and The BEEP Inc
 

Informatica reusable mapplett_date4day

  • 1. Informatica Reusable Component Date for Day Mapplet Copyright © 2000, Wipro Technologies Confidential Page 1 of 7 INFORMATICA REUSABLE COMPONENT DATE FOR DAY MAPPLET BY DIVYA SETHURAMAN DATE: 05-MAR-2008
  • 2. Informatica Reusable Component Date for Day Mapplet Copyright © 2000, Wipro Technologies Confidential Page 2 of 7 DOCUMENT HISTORY VERSION AUTHOR AMENDMENT DATE AMENDMENT DESCRIPTIO N v1.00 Divya Sethuraman Mar 05, 2008 First Version
  • 3. Informatica Reusable Component Date for Day Mapplet Copyright © 2000, Wipro Technologies Confidential Page 3 of 7 TABLE OF CONTENTS 1. Introduction............................................................................................................................................4 2. Implementation and Integration ..............................................................................................................5 3. Code ......................................................................................................................................................6 3.1 Reusable Component ..........................................................................................................................6 3.2 Test Code ...........................................................................................................................................6 4. Test Results............................................................................................................................................6
  • 4. Informatica Reusable Component Date for Day Mapplet Copyright © 2000, Wipro Technologies Confidential Page 4 of 7 1. Introduction There are scenarios where in Informatica we need to calculate different date based on the business requirement. To cater to this need, Reusable Mapplet has been developed which can used extensively as a transformation itself.
  • 5. Informatica Reusable Component Date for Day Mapplet Copyright © 2000, Wipro Technologies Confidential Page 5 of 7 2. Implementation and Integration Date will be calculated for the given day like first Friday of the month, last Friday of the month, last Friday, next Friday etc.,. With respect to given date. Three inputs have to be passed to the mapplet 1) Any Date 2) Day in the format given (MON/TUE/WED/THU/FRI/SAT/SUN) 3) Indicator that tells which date to be calculated. Below is the list of indicators that are supported in the mapplet. Friday is taken as example. CMF: First Friday of the Current Month. CML: Last Friday of the Current Month. CYF: First Friday of the Current Year. CYL: Last Friday of the Current Year. CMP: Previous Friday of the given date. CMN: Next Friday of the given date. PMF: First Friday of the Previous Month PML: Last Friday of the Previous Month NMF: First Friday of the Next Month NML: Last Friday of the Next Month Example: Suppose we pass the following inputs to the mapplet INPUT: Date: 12/31/2008 00:0000 Day: FRI Indicator: CMF OUTPUT: Then the mapplet will return the value 12/05/2008 which is the first Friday in the current month.
  • 6. Informatica Reusable Component Date for Day Mapplet Copyright © 2000, Wipro Technologies Confidential Page 6 of 7 3. Code Code will be part of the zip file that has been uploaded into the System. 3.1 Reusable Component mplt_FetchDate4Day (In attachment the code name will be mplt_FetchDate4Day.xml) 3.2 Test Code Mapping Name: m_TestDate4Day (In attachment the Test mapping name will be m_TestDate4Day.xml) WF Name: wkf_TestDate4Day (In attachment the Workflow name will be wkf_TestDate4Day.xml) 4. Test Results Example 1: Input file: InFile InFile.txt Screen Shot:
  • 7. Informatica Reusable Component Date for Day Mapplet Copyright © 2000, Wipro Technologies Confidential Page 7 of 7 Output Result: Output File: OutFile OutFile Screen Shot: