Question

1
Replies
554
Views
Thangaaa Member since 2018 7 posts
Ford Motor Company
Posted: September 8, 2018
Last activity: September 10, 2018
Closed

StringUtils to check for a string in the record.

What is the method I need to use in Stringutils to achecive the following case.

I have a 80 Byte record(many records) in which I need to check for 3 byte string starting at position 10.

If the String is present I need to write the record in one file, else I need to write the record in another file.

Example

Sample Records:

STHNTST1 RDY 8611 250/2008 250/2107 250/2015 ALL- 001 AUTO 000 LATE

STHNTST2 RDY 8612 250/2008 250/2107 250/2015 ALL- 001 AUTO 000 LATE

STHNTST3 ACT 8613 250/2008 250/2107 250/2015 ALL- 001 AUTO 000 LATE

STHNTST4 RDY 8614 250/2008 250/2107 250/2015 ALL- 001 AUTO 000 LATE

STHNTST5 REQ 8615 250/2008 250/2107 250/2015 ALL- 001 AUTO 000 LATE

Result:

File 1 or Variable:

STHNTST1 RDY 8611 250/2008 250/2107 250/2015 ALL- 001 AUTO 000 LATE

STHNTST2 RDY 8612 250/2008 250/2107 250/2015 ALL- 001 AUTO 000 LATE

STHNTST4 RDY 8614 250/2008 250/2107 250/2015 ALL- 001 AUTO 000 LATE

File 2 or Variable:

STHNTST3 ACT 8613 250/2008 250/2107 250/2015 ALL- 001 AUTO 000 LATE

STHNTST5 REQ 8615 250/2008 250/2107 250/2015 ALL- 001 AUTO 000 LATE

Thanks in Advance.

Robotic Process Automation
Moderation Team has archived post
Share this page LinkedIn