Previous Topic: SKIPRECIFNext Topic: Parameters


Syntax

SKIPRECIF({field-name|position[,scan-length]},operator,data[,…])
	   ({field-name|position,scan-length},data-type[,…])
SKIPRECIF({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})

Use the data definition to imply an OR condition. If the data and record position are the same, you can change the data value. This example does not process records that contain either a five-byte packed value of 0 or 50000 starting at record position 93. However, the ACCUM keyword executes when the conditional is met.

SKIPRECIF(93,5,EQ,P'00000,50000'),
  ACCUM(93,5,P,'TOTAL:')

When the data is different, but the position is the same, you can still use an implied OR by listing the different data values.

SKIPRECIF(105,15,EQ,C'A+ Widgets',T'A WIDGETS')