IF({field-name|position[,scan-length]},operator,data[,…])
({field-name|position,scan-length},data-type[,…])
IF({field-name|position,scan-length},operator,{field-name|position})
AND({field-name|position[,scan-length]},operator,data[,…])
({field-name|position,scan-length},data-type[,…])
AND({field-name|position,scan-length},operator,{field-name|position})
OR({field-name|position[,scan-length]},operator,data[,…])
({field-name|position,scan-length},data-type[,…])
OR({field-name|position,scan-length},operator,{field-name|position})
You can also use the data definition to imply an OR condition. If the data and position are the same, but the values different, change the data. This example looks for either character string LEAWOOD or MERRIAM' at record locations 40 - 54.
IF(40,14,EQ,C'LEAWOOD,MERRIAM')
When the data are not the same, you can still use an implied OR by simply listing the different data values.
IF(40,14,EQ,C'LEAWOOD',T'Merriam')
Or, you can append other criteria directly after the current criteria. This format ORs the two conditions.
IF(40,14,EQ,C'LEAWOOD',60,14,T'Merriam')
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|