Hi,
I have two files.
File1- FB,LREC=10, have only one record which have date mentioned in it.
File2- FB,Lrec=80, contains many records. Each record have date starting from 11th position and have same format as of date in first file.
Now I wanted to split file2 into sortout1 and sortout2 based on date in first file. If a date of record from file2 is greater than date in first file then that record should go in SORTOut1 file and if date of record (of file2) is equal of less than date of file 1 then records should go in sortout2 file.
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
You can have a look at this. Generates a DFSORT Symbol for the SYMNAMES file in the following step. Then use OUTFIL INCLUDE/OMIT for your two output files using the Symbol generated.
The error coming is SYNCSORT FOR Z/OS 1.3.2.1R U.S. PATENTS: 4210961, 5117495 (
SYNCSORT LICENSED FOR CPU SERIAL NUMBER 5F782, MODEL 2817 609
*** ERRORS IN SYMNAMES STATEMENTS ***
CIPE,2012-01-31
*
*** SYNTAX ERROR ***
WER470A SYMNAMES ERRORS FOUND WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
Shriram Jogdand,
You didn't mention that you wanted to compare date(s) in YYYY-MM-DD format. Change your OUTREC for STEP10 as below and see if it works.