Abend if field from two headers from two files matches!
Posted: Tue Aug 27, 2013 11:38 am
I have a GDG. I would like to compare a date field (ccyymmdd) in columns 4-11 lets say from the latest two generations of the file. If the dates (numeric for simplicity) match, then I want to send a RC=12 lets say to the JCL that will be processed by next step to abend. Can this be done in one step? I am thinking on the lines of (although I dont know what/how), read in the first record from the two files, sort on the date column, SUM FIELDS=NONE, then somehow, if the output contains two lines, then I am good. If it contains one line that mean both dates were same, so send RC=12 to JCL. How to do this please?