View previous topic :: View next topic
|
Author |
Message |
Mariraj
New User
Joined: 09 Jul 2007 Posts: 59 Location: Chennai
|
|
|
|
I need to display the current date in the header in the format yyyymmdd.
Ex: 20080418
There should be no separators between year,month & day.
Code: |
SORT FIELDS=COPY
OUTFIL FILES=OUT,
HEADER1=(1:'0001',32:&DATE(4MD' '))
|
This displays only 2008 04 18.
I tried using
Code: |
HEADER1=(1:'0001',32:&DATE(4MD''))
|
But it gives some syntax error.
Please do let me know how to get this output. |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Mariraj,
Try DATENS instead of DATE
|
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
This is invalid syntax - the correct syntax would be as follows (you could use the & but you don't need it):
You shouldn't have apostrophes around the blank separator.
If you don't want the separator, use DATENS instead of DATE:
|
|
Back to top |
|
|
Mariraj
New User
Joined: 09 Jul 2007 Posts: 59 Location: Chennai
|
|
|
|
Thanks to both of you.
DATENS worked fine. |
|
Back to top |
|
|
|