Vin# Module Configuration data
(starts from position 1st) (start its from 118th position) (starts from 148th position)
1FMEU31K48LA05353 CFG_726_WB_00 123456789012345678901234567890
1FMEU31K48LA05353 CFG_726_WB_01 12324567500000000000
1FMEU31K48LA05353 CFG_726_WB_02 5748749590079997997
1FMEU31K48LA05353 CFG_726_WB_03 65758697054345756886
1FMEU31K48LA05353 CFG_726_WB_04 12672589638907490670
1FMEU31K48LA05353 CFG_726_WB_05 1200 ---------------------------------------------> This data will remain as it is (1200)
1FMEU31K48LA05353 CFG_726_WB_06 01234567890
1FMEU31K48LA05353 CFG_726_WB_07 12768469283679237590
1FMEU31K48LA05353 CFG_726_WB_08 12769123472875089325
1FMEU31K48LA05353 CFG_726_WB_09 1234567890 ------------------------------------> this data should change to "8001000000"
1FMEU31K48LA05353 CFG_726_WB_0A 123456789012222222
00,01,02,03,04,05,06,07,08,09,0A===> block number. Each block can hold up to max of 50 bytes(100 characters),
2 >Requirement:
a> 10 th position of the Vin# = 7 0r 8
11th position of the Vin# = L
and 1FMEU31K48LA05353 CFG_726_WB_05 1200
;
:
then 1FMEU31K48LA05353 CFG_726_WB_09 8001000000
When I execuite this fileaid Data not yet changed as per the requirement.
Please correct the FileAid if it wrong and please tell any other ways to satisfy the above condition apart from fileaid.
This codes state if position 10 is EQ to '7' or '8' and position 11 is EQ to 'L' and position 118 is EQ to 'CFG_726_WB_05' and position 148 is EQ to '1200', then replace 148 with '1200'. It then checks to see if position 10 is EQ to '7' or '8' and position 11 is EQ to 'L' and position 118 is EQ to 'CFG_726_WB_09', then replace position 148 with '8001000000 '. All records all copied from the input to the output file because you are using COPYALL.
If the '1200' isn't going to change, there is no need to have the logic for that. You could use: