View previous topic :: View next topic
|
Author |
Message |
sashi
New User
Joined: 14 Sep 2005 Posts: 54 Location: Chennai
|
|
|
|
I have 2 files 1) FILE-A with LRECL=200 and 2)FILEB with LRECL=300.
I need to merge these two files into one single file say FILEC. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Ok, when you tried this what happened, what was the error message? And what did You tried, please post the JCL used & error messages if any. |
|
Back to top |
|
|
Alissa Margulies
SYNCSORT Support
Joined: 25 Jul 2007 Posts: 496 Location: USA
|
|
|
|
sashi wrote: |
I have 2 files 1) FILE-A with LRECL=200 and 2)FILEB with LRECL=300.
I need to merge these two files into one single file say FILEC. |
Please be more specific when you use the term "Merge". Are both files pre-sorted based on the same sort key? Do they need to be sorted? Or do you just want them both copied into a 3rd file? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Me again.. assuming the input files have RECFM=FB, you have to pad the shorter one to the length of the longer one before you can merge them. If you need more specific help on this, tell me the RECFM and LRECL of each input file, and whether you actually want to merge the files or just copy them.
To merge the input files, they must already be in sorted order and the output records will be in sorted order.
Copying the files means the output file will have all of the records of the first input file followed by all of the records of the second input file. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
What would be the format of the output variable or fixed (what LRECL) are the input records fixed or variable? |
|
Back to top |
|
|
|