Selection using more than one search parameter

To select records using more than one search parameter, you will need more than one OPTION statement.

About this task

If you want to print all the file control records for a particular task you need two OPTION statements. The COND=M parameter performs the AND operation on the two statements.
//SYSIN     DD *
OPTION PRINT OFFSET=34,FLDTYP=X,VALUE=00025C,FLDLEN=3,COND=M
OPTION PRINT OFFSET=43,FLDTYP=C,VALUE=FC,FLDLEN=2,COND=E
END
/*

The example shows how to search for all records which belong to task number 25 and have a component ID of FC.

If more than one type of record is to be found then the form of the following example could be used.

In this case, all the user journal records written with JTYPEID CP for transaction TRN5 are selected. The OPTION statements are ‘ANDed’ together.
//SYSIN     DD *
OPTION PRINT OFFSET=43,FLDTYP=C,VALUE=UJ,FLDLEN=2,COND=M
OPTION PRINT OFFSET=61,FLDTYP=C,VALUE=CP,FLDLEN=2,COND=M
OPTION PRINT OFFSET=29,FLDTYP=C,VALUE=TRN5,FLDLEN=4,COND=E
END
/*


dfha6c0036.html | Timestamp icon Last updated: Monday, 5 June 2017