Hi Gang,
I’m asking this because I don’t have access to a mainframe OS390 environment and I‘m hoping someone will be kind enough to offer help. Consider the following UNSTRING stmt:
Yes? No?
Thanx, Jack.
I’m asking this because I don’t have access to a mainframe OS390 environment and I‘m hoping someone will be kind enough to offer help. Consider the following UNSTRING stmt:
Code:
UNSTRING IN-FLD DELIMITED
BY ‘AQ’ OR
‘A’ OR
‘B’ OR
‘C’
INTO OUT-FLD-1
OUT-FLD-2
OUT-FLD-3
OUT-FLD-4
OUT-FLD-5
1) Will each IN-FLD segment be searched using the
delimiters in the same order that they appear in
the “delim by” phrase?
2) Will the fact that the 1st delim is 2 bytes
cause the 2nd 1 byte delim to fail the test when
its time comes?
I know what the results should be and what I’d like them to be, but neither of these has ever stopped IBM from doing what it damned well pleased in the paste.
Here’s the “test” data:
If IN-FLD contains XYZLMB1234A789AQMCMMM
Here’s what I think should happen:
Will OUT-FDL-1 contain XYZLM
OUT-FDL-2 contain 1234
OUT-FDL-3 contain 789
OUT-FDL-4 contain M
OUT-FDL-5 contain MMM
Thanx, Jack.