Farley, Peter x23353 wrote:

>Is there any way in SORT control cards (either DFSORT or SYNCSORT) to test for 
>a certain day of the week?  Something like this, assuming '3' represents the 
>DOW value for Wednesday:

Yes, there is. At least for DFSORT.

>OUTREC IFTHEN=(WHEN=(DOW(&DATE1),EQ,3),
>                                    BUILD=(C'WEDNESDAY=DATE VALUE + 
> 5',&DATE1+5)),
>                 IFTHEN=(WHEN=(DOW(&DATE1),NE,3),
>                                    BUILD=(C'NOT-WEDNESDAY=DATE VALUE + 
> 3',&DATE1+3))

>I have searched in both vendors' FM's but I did not find any indication of 
>such a function.

Did you searched the KC? I did that (go to www.ibm.com and search for 'DFSORT 
day of week') and there are some useful hits:

https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.iceg200/pawdf.htm
 
https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.iceg200/cvtdf.htm

PDF book: 'Smart DFSORT Tricks'

ftp://ftp.software.ibm.com/storage/dfsort/mvs/sorttrck.pdf 

Groete / Greetings
Elardus Engelbrecht

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to