Hi BHL,
Tried to use your orig thread, but kept getting error. Sooo..
My 2c:
The usual caveats, disclaimers and cop-outs apply.
HTH, Jack.
Tried to use your orig thread, but kept getting error. Sooo..
My 2c:
Code:
01 test-fld.
05 50-byte-fld pic x(050).
05 filler pic x(001) value x'FF'.
01 pos pic s9(004).
perform with test after
varying pos from +1 by +1
until test-fld(pos:1) = '*'
or pos = length of test-fld
end-perform
if test-fld(pos:1) = x'FF'
display 'no "*" found in the field'
else
display '"*" found at position ' pos
' in the field'
end-if
The usual caveats, disclaimers and cop-outs apply.
HTH, Jack.