Hi, I have encounter issues about sub string with from input and store in destination fields with different field length.
I have four 35A input fields condition with if character at position 35A of input line 1 is not a space and first character of input line 2 is not space,
then will move last word of input line field 1 to destination field 2.Same rules will applied to destination field with line 2 ,3,4. It also will prompted error
after movement input word if the destination fields length no enough long to store total four input fields.
Scenario 1:
Expected result store to 4 line destination fields with 40A each of line.
Scenario 2:
Expected result store to 4 line destination fields with 40A each of line.
Appreciated with any help,Thanks
I have four 35A input fields condition with if character at position 35A of input line 1 is not a space and first character of input line 2 is not space,
then will move last word of input line field 1 to destination field 2.Same rules will applied to destination field with line 2 ,3,4. It also will prompted error
after movement input word if the destination fields length no enough long to store total four input fields.
Scenario 1:
Code:
[FONT=courier new]Input 1 35A: |No. 1241,Old Klang road, Tom Cater| Input 2 35A: |rried ,58785 Windfall Stand Johnan| Input 3 35A: | Stress bay White hall CHIGNA| Input 4 35A: |LL ST JAMES |[/FONT]
Code:
[FONT=courier new]Destination Field 1 40A: |No. 1241,Old Klang road, Tom | Destination Field 2 40A: |Caterrried ,58785 Windfall Stand | Destination Field 3 40A: |Johnan Stress bay White hall |- The 'bay ' world remain Destination Field 4 40A: |CHIGNALL ST JAMES |[/FONT]
Scenario 2:
Code:
[FONT=courier new, courier, monospace]Input 1 35A: |No. 1241,Old Klang road, Tom Cater|[/FONT] [FONT=courier new, courier, monospace]Input 2 35A: |rried ,58785 Windfall Stand Johnan|[/FONT] [FONT=courier new, courier, monospace]Input 3 35A: | Stress bay White hall CHIGNA|[/FONT] [FONT=courier new, courier, monospace]Input 4 35A: |LL ST JAMES TAXES STATES STAND CITY|[/FONT]
Code:
[FONT=courier new]Destination Field 1 40A: |No. 1241,Old Klang road, Tom | Destination Field 2 40A: |Caterrried ,58785 Windfall Stand | Destination Field 3 40A: |Johnan Stress bay White hall |- The 'bay ' world with space remain Destination Field 4 40A: |CHIGNALL ST JAMES TAXES STATES STAND CI|- Prompt error msg as the 'TY' no enough fit in the 40 length field [/FONT]
Comment