Posted: Thu Jul 19, 2007 6:08 am Post subject: Diff btw SORT & MERGE.
Hi,
I wanted to combine two files into a single file. File A and File B content should be present in File B. I am using SYNCSORT. I am getting the same resultant output file (File B) when used the below statements:
Code:
SORT FIELDS = COPY
OR
MERGE FILEDS = COPY
Would there be anything wrong or is it ok?
Please help.
TIA. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
Posted: Thu Jul 19, 2007 6:20 am Post subject:
mf_user,
you have been around long enough to know that when you post a question and only provide very little information you will receive very little help. What is you jcl? and job output msgs?
If I understand you correctly, File A and File B are your input files, File B - containing File A is your output. How do you know what you have when you have nothing to compare? destructive updates are not very professional.
When you use the COPY parm of the fields operand of merge, are you not just appending A onto B? Why don't you use an iebgener copying A to B, with B as disp=(mod,keep,keep)? _________________ Dick Brenholtz
American living in Varel, Germany
Yes, please post the complete JCL that you coded for this job.
Please also note, that for a COPY or MERGE, the output file must not be the same as any of the input files. Therefore, please make sure that although you want the contents of File A and File B in File B, write it out to File C. _________________ Alissa Margulies
SyncSort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
Joined: 13 Dec 2006 Posts: 101 Topics: 4 Location: india
Posted: Thu Jul 19, 2007 12:42 pm Post subject:
mf_user
If your i/ps are already in sorted order, then use merge to combine them; This increases the efficiency(by using merge).
If the i/ps are not in sorted order, than just use SORT to combine.
regarding this,
Quote:
File A and File B content should be present in File B.
It would be clear if you provide the JCL that you are using. _________________ cHEERs
krisprems
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Mon Jul 23, 2007 6:44 am Post subject:
mf_user,
wow. Your sortin and sortout is the same ? You concatenated the DSN "XXXXX.XXXXX.XXXX.XXXXX.XXXXXXX.XXXXT08" to SORTIN and also it is the same DSN for Sortout? .Also you did not provide us with the sysout messages and how did you expect us to help?
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
Posted: Mon Jul 23, 2007 9:14 am Post subject:
mf_user,
You are just wasting time. You don't even read the questions properly and you only answer partial questions. Go read my prior post and see what I asked.
OK dbzTHEdinosauer. Thanks. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
==
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
Posted: Mon Jul 23, 2007 9:41 am Post subject:
mf_user wrote:
OK dbzTHEdinosauer. Thanks.
does that mean it worked? I still can't understand how you can compare xxxxt08 before and after. _________________ Dick Brenholtz
American living in Varel, Germany
reminds me; when I started my career as a fresher, I did not know of any helpboards, did not know the links for IBM manuals, training was hopeless and I was really lost... If it weren't for my mentors in my first project, I would never have been comfortable in the mainframe world.
________
AN1X
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