I have a string, sort of like this:
“PID 0xA043 FW 116 SER# HQ1517557PE V 10000 I -10 VPV 15000 PPV 00 C”
I need to extract the value 15000, which occurs consistently one space after VPV. The command spstr splits the string upstream of an index value. So if I use:
spstr Source,Destination,"VPV ",0, it will return all the characters right up to VPV. But I need the five characters right after it. The string is not always the same length, so I can’t use a sub string, unless I know what index position the VPV occurs in.
Is there a way to search for “VPV” and find the index numbers within the string?