View previous topic :: View next topic
|
Author |
Message |
rajendra kalepu
New User
Joined: 29 Jul 2011 Posts: 21 Location: India
|
|
|
|
Hi Team,
My requirement is to add current date in header using DFSORT
Please find my example below for better understanding
Example:
Header to be added : "world is not enough" DATE(current date) "success"
I have written sort card in the following manner to achieve that
SORT FIELDS=COPY
OUTFIL REMOVECC,
HEADER1=(1:'world is not enough', DATE1, 28:'success')
Strangely i am getting Syntax error
Please help me |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest you post what you actually submitted (along with the jcl) and the information generated by the run so we help . . . |
|
Back to top |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
You have syntax errors because
1. You have spaces between keywords
2. Date1 is NOT valid on Trailer1. You need to use DATENS keyword
Use the following control cards
Code: |
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL REMOVECC,
HEADER1=(1:'WORLD IS NOT ENOUGH ',DATENS=(4MD),28:' SUCCESS')
//* |
|
|
Back to top |
|
|
|