|
|
| Author |
Message |
Aneesh
New User
Joined: 30 Sep 2006 Posts: 41
|
|
|
|
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. |
|
| Back to top |
|
 |
References
|
|
 |
Skolusu
DFSORT Developer
Joined: 07 Dec 2007 Posts: 399 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)
//*
|
|
|
| Back to top |
|
 |
Aneesh
New User
Joined: 30 Sep 2006 Posts: 41
|
|
|
|
Thank you  |
|
| Back to top |
|
 |
|
|