Joined: 26 Apr 2004 Posts: 4648 Location: Raleigh, NC, USA
This did not work out as I got this text "%&DATE%" written in my dataset.
Hmm, you think?
DD * indicates that the JCL is ending and data follows. %&DATE% is nothing more than data. I don't know what you were expecting it to do. IDCAMS obviously doesn't know that it represents anything. Your example would only work if you were using a program that actually knew what value to translate the data %&DATE% into.
Why not use either SORT or the EZACFSM1 program? And, what exactly is the value of %&DATE% supposed to represent?