I have 2 i/p files which are in VB
I have to compare these two files for a perticular field and if match occures , I have to write to o/p file .
I have tried using SORT join with reformat fields bt am unable to create the o/p file in VB.
File 1
trans-idA Trans-idB
1-----4 5------8---------------------------80
1234 4567
2345 6789
3456 9123
File B
Trans-id
1--------------------------- 17----20------------------------------4096
1234
3456
O/P FILE
File C
Trans-id
1----------------------------17------20----------------------------4096
4567
9123
trans-idA Trans-idB
1-----4 5------8---------------------------80
1234 4567
2345 6789
3456 9123
File B
Trans-id
1--------------------------- 17----20------------------------------4096
1234
3456
O/P FILE
File C
Trans-id
1----------------------------17------20----------------------------4096
4567
9123
I have used the below SORT join keys syntax
JOINKEYS FILES=F1,FIELDS=(9,4,A)
JOINKEYS FILES=F2,FIELDS=(21,4,A)
REFORMAT FIELDS=(F2:5,16,F1:9,4,F2:25,4072)
SORT FIELDS=COPY
As the i/p files are in VB I have added 4 bytes .
Bt when am using the above sysntax am unable to give the VB o/p file format ....
How can indicate the o/p file as VB in Reformat fields?