z/OS DFSORT Application Programming Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


D2 format on COND operand

z/OS DFSORT Application Programming Guide
SC23-6878-00

Following is the syntax for the INCLUDE or OMIT statements using the D2 format on the COND operand.

The syntax for the INCLUDE or OMIT statements using the D2 format on the COND operand
Where
Represents
mc
the correlator identifier, a numeric value used to identify each relational condition
mm
field length
mf
the D2 format designating an EFS field within the relational condition
operator
a valid DFSORT comparison or bit logic operator
constant
a valid DFSORT decimal, character, hexadecimal or bit constant.
mask
a valid DFSORT hexadecimal or bit string

Table 1 gives an example of using a correlator identifier and the D2 format for an INCLUDE control statement returned to DFSORT by the EFS program.

Note: The values for the correlator identifiers assigned to each relational condition by the EFS program can be in any chosen order. The example in Table 1 shows a sequential ordering for the correlator identifiers.
You must adhere to the following requirements for the D2 format:
  • The mc, mm, or constant values returned must be valid INCLUDE or OMIT control statement values, except:
    • The combined value of mc and mm might exceed the record length.
    • Any valid DFSORT constant or mask is allowed.
    • If COND=(mc1,mm1,mf1,operator,mc2,mm2,mf2) is used, both mf1 and mf2 must be D2.
    • CHALT has no effect on EFS fields.
    • FORMAT=D2 is not allowed.
Table 1. Correlator Identifier and D2 Format Returned by an EFS Program
Correlator Identifier and D2 Format Returned by an EFS ProgramFormat

Original INCLUDE control statement sent to EFSPGM

INCLUDE COND=(15,4,FF,EQ,20,4,FF,AND,40,7,FF,NE,50,7,FF,OR, 30,2,FF,NE,35,2,FF)

Altered INCLUDE control statement returned by EFSPGM

INCLUDE COND=(1,4,D2,EQ,1,4,D2,AND,2,7,D2,NE,2,7,D2,OR,3,2,D2,NE,3,2,D2)

Where:
  • FF is a user-defined format and modified to D2 by the EFS program before returning to DFSORT.
  • The first relational condition specified, (1,4,D2,EQ,1,4,D2), uses correlator identifier value 1 to identify this relational condition.
  • The second relational condition specified, (2,7,D2,NE,2,7,D2), uses correlator identifier value 2 to identify this relational condition.
  • The third relational condition specified, (3,2,D2,NE,3,2,D2), uses correlator identifier value 3 to identify this relational condition.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014