Posted: Thu Dec 09, 2010 11:19 am Post subject: Syncsort join a multiple rec file with a single rec file.
Hi everybody. I'm working on a unload file from which I'll delete old records to load it back again.
FILE_A (unload. contains many records)
aa2010-10-10mmmmmm
bb2008-10-22000000000
.
.
.
FILE_B ( constains only one record. The date used for the comparison)
2009-01-01
I need to output 2 files comparing the dates from both files:
When FILE_A < FILE_B I need to write output 1.
When FILE_A >= FILE_B I need to write output 2.
The client I work for uses utilities a lot instead of batch programs because of performance. In this case this logic will be a PROC step that will run monthly to delete old data from the table. In fact the output file with old data wil be backed up to a gdg and the other will be load replaced. _________________ The more I learn, the more I want to learn.
The date used for comparison exists in a parameter table as 750 days. I unload that paramenter already calculating the current date minus 750 days. And that's my file with only one record. _________________ The more I learn, the more I want to learn.
In fact when we build a new process we just follow instructions from the specs they send. _________________ The more I learn, the more I want to learn.
It works!!!!!!!!!!!
"Symbols" are really what I was looking for.
My sysin has only 3 lines now.
Thank you very much again, Kolusu. _________________ The more I learn, the more I want to learn.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum