| View previous topic :: View next topic |
| Author |
Message |
rsantosh Beginner
Joined: 20 Dec 2014 Posts: 47 Topics: 11
|
Posted: Fri Dec 05, 2025 3:32 am Post subject: SORT - Why no file contention |
|
|
Hello,
Sorry for the silly doubt but I was under the impression that below SORT will result in file contention as SORTIN and SORTOUT file are same but job completed successfully and result was as expected(excluded few records).
| Code: | //STEP01 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=SANTOSH.TEST,DISP=OLD
//SORTOUT DD DSN=SANTOSH.TEST,DISP=OLD
//SYSIN DD *
SORT FIELDS=COPY
OMIT COND=(9,2,CH,EQ,C'AB')
/* |
_________________ Regards, Santosh |
|
| Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12401 Topics: 75 Location: San Jose
|
|
| Back to top |
|
 |
rsantosh Beginner
Joined: 20 Dec 2014 Posts: 47 Topics: 11
|
Posted: Fri Dec 05, 2025 12:16 pm Post subject: |
|
|
Thank you so much. I can relax now.  _________________ Regards, Santosh |
|
| Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12401 Topics: 75 Location: San Jose
|
Posted: Fri Dec 05, 2025 12:30 pm Post subject: |
|
|
| rsantosh wrote: | Thank you so much. I can relax now.  |
rsantosh,
Did you overlook this statement in my post?
| Kolusu wrote: | | Btw using the same dataset for input and output for a COPY operation may cause unpredictable results. |
_________________ Kolusu
www.linkedin.com/in/kolusu |
|
| Back to top |
|
 |
rsantosh Beginner
Joined: 20 Dec 2014 Posts: 47 Topics: 11
|
Posted: Fri Dec 05, 2025 1:37 pm Post subject: |
|
|
I did notice it and checked both the links. Whole day I was wondering why no contention your reply was relieving  _________________ Regards, Santosh |
|
| Back to top |
|
 |
|
|
|