|
|
| Author |
Message |
MGIndaco
Moderator
Joined: 10 Mar 2005 Posts: 478 Location: Milan, Italy
|
|
|
|
I suggest you to try with this form:
| Code: |
//SYSIN DD *
*SORT STATEMENT START AT POSITION 2
OUTREC IFTHEN=(WHEN=(1,4,CH,EQ,C'0010',AND,8,4,CH,EQ,C'0020'),
OVERLAY=(15:C'1201')) |
I hope in this. |
|
| Back to top |
|
 |
References
|
|
 |
Frank Yaeger
DFSORT Moderator
Joined: 15 Feb 2005 Posts: 4684 Location: San Jose, CA
|
|
|
|
You can code DFSORT's WHEN condition with OR and AND operators in the same way you can code the INCLUDE condition with OR and AND operators. MGIndaco has shown the correct syntax using AND which assumes that you want to do the OVERLAY if both conditions are satisfied. If you want to do the OVERLAY if either condition is satisifed, you would use:
| Code: |
OPTION COPY
OUTREC IFTHEN=(WHEN=1,4,CH,EQ,C'0010',OR,8,4,CH,EQ,C'0020'),
OVERLAY=(15:C'1201'))
/*
|
For complete details on the syntax of DFSORT's INCLUDE, OMIT and WHEN conditions, see:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA10/3.7?DT=20050222160456 |
|
| Back to top |
|
 |
nickyboy
New User
Joined: 26 Aug 2005 Posts: 18
|
|
|
|
Thanks Frank and MGIndaco for your repiles..This is exactly what I was looking for..
Nick.. |
|
| Back to top |
|
 |
|
|
|