I would like to know how can we read records using Openquery subjected to the following condiitons.
1. Record selection based on some condition
2. selection of distinct record in case more than one record exists for the Key filelds comibantion.
I Tried the following but it throws exception.
OPNQRYF FILE((RBLFMTN3)) OPTION(*ALL) QRYSLT('(TFDOS +
*LT ZSDAT) *AND (TFDOS *GT ZEDAT)') +
KEYFLD(*FILE) UNIQUEKEY(2) MAPFLD((ZSDAT +
&SDAT *ZONED 8) (ZEDAT &EDAT *ZONED 8)) +
Please help if some one knows it?.......PLs...
1. Record selection based on some condition
2. selection of distinct record in case more than one record exists for the Key filelds comibantion.
I Tried the following but it throws exception.
OPNQRYF FILE((RBLFMTN3)) OPTION(*ALL) QRYSLT('(TFDOS +
*LT ZSDAT) *AND (TFDOS *GT ZEDAT)') +
KEYFLD(*FILE) UNIQUEKEY(2) MAPFLD((ZSDAT +
&SDAT *ZONED 8) (ZEDAT &EDAT *ZONED 8)) +
Please help if some one knows it?.......PLs...




Comment