Aneesh
New User
Joined: 30 Sep 2006 Posts: 60
|
|
|
|
Hi,
I have a requirement to write the day of the week (Sunday, Monday etc or a number indicating the same) to an output file. Can this be done using sort?
Thanks,
Aneesh. |
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
Aneesh,
The following DFSORT/ICETOOL job will give you the desired results.It will write a three byte value for the day of week. mon, tue, wed, thu, fri, sat, sun
Code: |
//STEP0100 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SYMNAMES DD *
MYDAY,S'&LWDAY'
//SORTIN DD *
SAMPLE
//SORTOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
INREC BUILD=(MYDAY)
//*
|
|
|