File 1: FB/80 Sequential file
This file contains date in MM/DD/CCYY format in the position 48.
File 2: VSAM KSDS VB
This file contains date in YYMMDD format in the position 13.
I need to pull records from VSAM when the date in VSAM file is greater than the date in file1.
So i used symnames. In step1 i converted MM/DD/CCYY format to CCYYMMDD format. In step2 i am comparing YYMMDD date from vsam file with CCYYMMDD build from symnames.
ICE270I 0 PROCESSING SYMNAMES STATEMENTS
ICE280I 1 ORIGINAL STATEMENTS FROM SYSIN FOLLOW
SORT FIELDS=COPY
INCLUDE COND=(17,6,Y2T,GT,TARG)
ICE282I 0 PERFORMING SYMBOL SUBSTITUTION AS NEEDED
ICE143I 0 BLOCKSET COPY TECHNIQUE SELECTED
ICE250I 0 VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AN
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R10 - 05:05 ON WED FE
SORT FIELDS=COPY
INCLUDE COND=(17,6,Y2T,GT,20111129)
ICE201I H RECORD TYPE IS V - DATA STARTS IN POSITION 5
ICE221A 0 INVALID FIELD OR CONSTANT IN *INCLUDE IFTHEN 0 CONDITION 1
ICE751I 0 C5-K90025 C6-K90025 C7-K54603 C8-K62201 EE-K51707 E7-K62201
ICE052I 3 END OF DFSORT
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
looks like you will have to do a little inrec build (create 8 char date at end of record)
and then put the INCLUDE in outfile with a build to drop the extra 8 char.