Question

1
Replies
629
Views
Thangavel S (Thangaaa)
Ford Motor Company

Ford Motor Company
IN
Thangaaa Member since 2018 7 posts
Ford Motor Company
Posted: September 8, 2018
Last activity: September 10, 2018
Posted: 8 Sep 2018 9:55 EDT
Last activity: 10 Sep 2018 2:27 EDT
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:

Show More

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.

Show Less
Robotic Process Automation
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.