These is a requirement to copy the records from input file to output file with below conditions
Input file contains 10 columns, we have to validate the records in 5 conditional columns for the spaces or zeroes and copy those records in to output file. In that, first unconditional column contains, employee ID, based on that, we have to omit 1 conditional column if it is spaces or zeroes.
Below input files 1 and 2 contains 7 columns, In that columns (3,4,5) are the conditional columns, We have to copy the records which contains spaces in conditional columns (3,4,5), and column-5 should omitted even it is spaces based on the column-1 value ‘55555’, Suppose if other 2 conditional columns are spaces, then that records should be captured in output file.
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
daveporcelan wrote:
Kolusu to rescue once again. Thanks.
My request for Pseudo code was an attempt for the TS to use their brain and determine the logic needed on their own.
Oh well, better luck next time.
Dave,
I apologize for providing a complete solution. I agree with you about encouraging the posters to write psuedo code or work on solutions with clues provided, however very few people do that.
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
Quote:
Dave,
I apologize for providing a complete solution. I agree with you about encouraging the posters to write psuedo code or work on solutions with clues provided, however very few people do that.
No apology necessary.
The knowledge and service you provide is very valuable and appreciated.
What the people do with the information is questionable.
When a TS comes back with a silly adjustment or error, refusing to try to figure out, that is when the brakes should be applied.