Code: |
//SELECT EXEC PGM=ICETOOL,REGION=0M // ... //INDD1 DD DSN=LOOK1 // DD DSN=LOOK2 // DD DSN=LOOK3 ... // DD DSN=LOOK8 //OUTDD1 DD DSN=ALLDUPS //OUTDD2 DD DSN=NODUPS //OUTDD3 DD DSN=LIST //OUTDD4 DD DSN=DIFFRENT //TOOLIN DD * SELECT FROM(INDD1) TO(OUTDD1) ON(11,12,CH) ALLDUPS * select list of all duplicate values SELECT FROM(INDD1) TO(OUTDD2) ON(11,12,CH) NODUPS * select all unique values SELECT FROM(OUTDD1) TO(OUTDD3) ON(11,12,CH) FIRST * select 1 from list of duplicate values SELECT FROM(OUTDD1) TO(OUTDD4) ON(11,45,CH) NODUPS *select "incorrect" descriptions from list of duplicate values //* //* sort unique values into 1 list. //* //JS010 EXEC PGM=SORT,PARM='SIZE=MAX' * DFSORT //SORTIN DD DSN=NODUPS // DD DSN=LIST //SORTOUT DD DSN=SORTED ... //SYSIN DD * SORT FIELDS=(11,12,CH,A) // |
Quote: |
SELECT FROM(INDD1) TO(OUTDD1) ON(11,12,CH) ALLDUPS * select list of all duplicate values SELECT FROM(INDD1) TO(OUTDD2) ON(11,12,CH) NODUPS * select all unique values |
Code: |
SELECT FROM(INDD1) TO(OUTDD1) ON(11,12,CH) ALLDUPS DISCARD(OUTDD2) |
kolusu wrote: | ||
You can club these into 1 single select statement with the following
|
output generated using printer-friendly topic mod. All times are GMT - 5 Hours