Author: John Del
Posted: Wed Feb 22, 2017 8:19 pm (GMT 5.5)
scdinesh -
Scratch my last comment about using the unique constant for each input data set; that still won't give you the results that you are expecting.
Did you actually run your job? And was that really the output of your SORTOF2 DD?
Using your parameters as coded, your output should be:
Note: I modified your record length to make the two records easily fit on my screen
You'd need to have post processing of some type to select just the first occurrence of your output (ie: sum fields, icetool select) in order to get your expected outcome of
/*
_________________
Posted: Wed Feb 22, 2017 8:19 pm (GMT 5.5)
scdinesh -
Scratch my last comment about using the unique constant for each input data set; that still won't give you the results that you are expecting.
Did you actually run your job? And was that really the output of your SORTOF2 DD?
Using your parameters as coded, your output should be:
Code: |
1234DAVID 1234MIKE 1234DAVID 1234NINDY 1234FEHAN 1234MIKE 1234FEHAN 1234NINDY |
Note: I modified your record length to make the two records easily fit on my screen
You'd need to have post processing of some type to select just the first occurrence of your output (ie: sum fields, icetool select) in order to get your expected outcome of
Code: |
1234DAVID 1234FEHAN |
/*
_________________
Code: |
*WORK EDIT1 UNIX DSLIST1 DSLIST2 -SDSF1 SDSF2 ENDEVOR |