Hi All,
I have not used icetool earlier. I have to append date from inputfile-1 to all the records present in inputfile-2. Please find below a sample.
Inputfile-1:
2012-05-04
Inputfile-2:
AAAAAA
BBBBBB
CCCCCC
Output should be:
AAAAAA2012-05-04
BBBBBB2012-05-04
CCCCCC2012-05-04
I have to do it using icetool. Can someone kindly let me know how to do it.
Thanks in advance to all...
Regards,
Vineet
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
Pandora-Box,
Your joinkeys job is performing a SORT on both files which you really don't need to. Imagine if the master file had millions of records and a sort operation on it is a mere waste of resources. Also you are assuming that the input files are created with a space in their respective positions in their files which may or may not be true. On the other hand the symbol generation job is using a COPY operation which is much more efficient. The symbol generation job is just reading 1 record and writting out a symbol statement which will be later used in copying the Master file. It is NOT about how many steps you code , it is about efficiency. In this case 2 step symbol generation method is much more efficient than a Joinkeys with SORT operation.
If you do insist using joinkeys, I would make sure you use SORTED,NOSEQCK parameters to force a COPY operation instead of SORT.