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:
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.
I know I can handle such a requirement in an exit routine (and more flexibly as
well), but I was hoping someone already needed such a function and one of the
vendors already provided a solution, maybe with an SPE (documented or not).
TIA for any help you can provide.
Peter
This message and any attachments are intended only for the use of the addressee
and may contain information that is privileged and confidential. If the reader
of the message is not the intended recipient or an authorized representative of
the intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication
in error, please notify us immediately by e-mail and delete the message and any
attachments from your system.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN