Hello everyone, I had posted this similar kind of question yesterday night with the different handle name but due sto some problems,I cannot logon
to my account nor can i see the reply sent for my question. Hence, I created a new handle and posting this question.
I appreciate any help regarding this. Thansk again, for the reply thought but I am unable to see it.
source file: This column value needs to be considered as a single field "12 34" (with space in between and this needs to
be compared with target 1 and 2 files with the filed values starting with 3rd position and ending in position 10 ..counting position from
the start of the position1)
12 34
56 78
99 88
target_file 1:
0112 34 this is 01 record
0312 34 this is 03 record
0156 78 this is 01 record
0356 78 this is 03 record
target_file 2:
0199 88 this is 01 record
0399 88 this is 03 record
0111 22 this is 01 record
0333 44 this is 03 record
Here I should get the outout file as:
=====================================
0112 34 this is 01 record- these fisrt four lines from target1
0312 34 this is 03 record
0156 78 this is 01 record
0356 78 this is 03 record
0199 88 this is 01 record - this is from target2
0399 88 this is 03 record - this is from target2
we need the output data from target files only for those matching the columns in the source file.
Also, the finalized out - can it be redirected to the file ?
Thanks very much again,
Bhanu
to my account nor can i see the reply sent for my question. Hence, I created a new handle and posting this question.
I appreciate any help regarding this. Thansk again, for the reply thought but I am unable to see it.
source file: This column value needs to be considered as a single field "12 34" (with space in between and this needs to
be compared with target 1 and 2 files with the filed values starting with 3rd position and ending in position 10 ..counting position from
the start of the position1)
12 34
56 78
99 88
target_file 1:
0112 34 this is 01 record
0312 34 this is 03 record
0156 78 this is 01 record
0356 78 this is 03 record
target_file 2:
0199 88 this is 01 record
0399 88 this is 03 record
0111 22 this is 01 record
0333 44 this is 03 record
Here I should get the outout file as:
=====================================
0112 34 this is 01 record- these fisrt four lines from target1
0312 34 this is 03 record
0156 78 this is 01 record
0356 78 this is 03 record
0199 88 this is 01 record - this is from target2
0399 88 this is 03 record - this is from target2
we need the output data from target files only for those matching the columns in the source file.
Also, the finalized out - can it be redirected to the file ?
Thanks very much again,
Bhanu