Question
The 13th to 18th bytes in a string is an ID, and I would like to use the ID in subsequent processing.
How can I cut a part of a string by specifying bytes in Mapper?
Answer
You can use the [Left String (bytes)] logic or the [After Specified Character] logic to cut off bytes in the middle of a string.
Sample data: xxxxxxxxxxxxxxxxIDDATAxx
1. Cut 12 bytes with [left string (byte)] in Mapper and assign it to a variable.
2. Prepare another Mapper and add the following.
Specify the variable in [After Specified Character], and get the 13th and subsequent bytes.
Cut off the first 6 bytes from the string with [Left String (bytes)].
Result data: IDDATA
For details of each logic, see the following pages.
[Left String (bytes)]
https://www.hulft.com/help/en-us/HULFTSquare/Content/Designer/Mapper/LeftByte.htm
[After Specified Character]
https://www.hulft.com/help/en-us/HULFTSquare/Content/Designer/Mapper/SubstringAfter.htm
Comments
0 comments
Article is closed for comments.