can you pls give the details like ,
one file contains the records which matches the given date (date is current date/?) and
the other file contains the records that doesn't match the date.
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
I do know enough about DFSORT to know that you will have to provide the value for (current date - 3 months) as a symbolic to DFSORT program via the SYMNAMES DD statement. Will that be possible?
This JCL has 2 steps ,
in Step 1 , we are creating a dataset containg 1 record with following data :
CUTOFFDATE,'CCYYMMDD'
The step 2 is a sort step which uses the dataset created in step 1 as SYMNAMES DD & in SORT card , CUTOFFDATE is replaced by value in the dataset created in STEP 1.
Thanks it helps alot, but before i would like to clarify a question
Suppose in the temp file the record looks as
Cutoffdate , '20051105' that temp file is used in the step0200 with the dd name sysnames.
My question is when i use cutoffdate in the sort control card, will it treat as symbol name or will it take what ever the value that come after cutoffdate that start and end with codes(replaced) in the record in the temp file available at dd name sysnames.
is the sysnames is the predefined dd name.
If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from: