Posted: Wed Feb 22, 2012 5:40 am Post subject: Select the latest Record and Match 2 files & Generate Re
1.
We have the below employee File that has the duplicate information of the employees as specified below. It is sorted on Employee Number field. We have to create a new employee file from this file without any duplicates and the information of the employee should be latest (based on date). Please propose some good solutions to accomplish this (Note : You can come up with as many solutions as you could)
0001 PETE PERSHING DP TEAM LEAD 01/01/2011
0002 JOHN BNYM FMTS PROJECT LEAD 01/03/2011
0002 JOHN BNYM AST TEAM LEAD 01/01/2011
0003 DAVE BNYM AST DEVELOPER 01/01/2011
O/P Sample File
Code:
0001 PETE PERSHING DP TEAM LEAD 01/01/2011
0002 JOHN BNYM FMTS PROJECT LEAD 01/03/2011
0003 DAVE BNYM AST DEVELOPER 01/01/2011
2.
An ABC financial company decides to reverse some of the transactions that happened today as it mistakenly processed an incorrect input file. So the management decides to compare today's transaction file with yesterday's transaction file and see if the transactions that have been added, modified or deleted today have to be reversed.
Please come up with solutions to compare today's and yesterday's file and produce the below reports
1. Modified Data Report
2. Added Data Report
3. Deleted Data Report
(Note : You can come up with as many solutions as you could) _________________ Arvind
"You can make a difference with your smile. Have that with you always"
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
Posted: Wed Feb 22, 2012 11:40 am Post subject:
arvibala,
IMHO, these questions can be answered by any one with very very little effort. I don't see them as challenges at all.
You need to be clear on the requirements.
1. What is the format of the WS-UPDATED-DATE in the first question. Is it DD/MM/CCYY or MM/DD/CCYY ? I assume it is DD/MM/CCYY as it is highly impossible to get promoted from asst team lead to project lead within 2 days. oh well even 2 months is kinda of far fetched idea.
2. You never mentioned anything in regards to the utilities to be used or the programming language to be used.
3. The second question is too vague. Are the transactions in yesterday's and today's file unique? How do you compare to get the modified data assuming that a particular account had 10 transactions yesterday and today's file had 15 transactions. What do you compare? transaction type? Transaction Amount? Transaction date?
PS : Use code tags to retain the spacing and readable _________________ Kolusu
www.linkedin.com/in/kolusu
I was in a hurry getting this to Forum as I was facing problems with my internet connection.
1. Format is MM/DD/CCYY and may be on Jan 1st he was asst team lead and got a promotion on Jan 2nd or 3rd.
2. its using SORT
3. Key is WS-TRANSACTION-NR , WS-ACCOUNT-NR and WS-TRANS-DATE.
Sorry abt that
Thanks
Arvind _________________ Arvind
"You can make a difference with your smile. Have that with you always"
But for 2, I am getting error when I make file reference like above and "?" too is not being recognized. S?YNCSORT Version I have is "SYNCSORT FOR Z/OS 1.3.2.0R" ... is that to do with this??
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
Posted: Tue Feb 28, 2012 11:42 am Post subject:
arvibala,
The Job works fine with DFSORT. Your Error messages indicate you are using syncsort. I'm a DFSORT developer. DFSORT and Syncsort are competitive products. I'm happy to answer questions on DFSORT and DFSORT's ICETOOL, but I don't answer questions on Syncsort.
It has turned out to be a another regular help thread. I am going to move these 2 topics to Sort/utilities forum. _________________ Kolusu
www.linkedin.com/in/kolusu
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum