I have more records. In example I only put the first record.
Hint:
1) re-number the input records in each of input "files" = datasets
2) join each two records, - matching them on equal record numbers
3) decide what to do when the number of records is different in both inputs?
Did you ever read my answer?
Did you understand something of it?
sergeyken wrote:
Carloseven wrote:
I have more records. In example I only put the first record.
Hint:
1) re-number the input records in each of input "files" = datasets
2) join each two records, - matching them on equal record numbers
3) decide what to do when the number of records is different in both inputs?
P.S.
1. You are not "running JCL program".
You are running SORT application program, and all 100% of your issues are related exclusively to SORT, not to JCL, or VSAM, or whatever else.
2. Please!!!!! Learn how to use the Code button when presenting your samples!
3. When presenting your testing, present also your input and output data, properly, using the Code button. Or you can present your test data under your // DD * statements
4. Finally, start reading at least basic manuals on the stuff you intend to use in your life, before asking at the forum.
Search for "smart dfsort tricks" using your favorite search engine.
Download the PDF file (preferably from IBM site but not necessarily)
Look at all the different things you can do with a sort
Look at the chapter called "Join fields from two files record-by-record"
If you have questions about ICETOOL, search for "ICETOOL Mini-User Guide"
Even the sample is almost like yours (and the answer is yes, btw)
The book wrote:
I want to merge two files laterally record by record. For example:
If FILE1 contains:
AAAAA
BBBBB
CCCCC
and FILE2 contains:
11111
22222
33333
then my output file should contain:
AAAAA11111
BBBBB22222
CCCCC33333
Can DFSORT do this?
The ICETOOL document was written by our friendly Frank L. Yaeger, now retired. Let's hope he is enjoying his time !
4. Finally, start reading at least basic manuals on the stuff you intend to use in your life, before asking at the forum.[/quote]
???
sergeyken I read the manual and read before ask...If I ask was because it not works what I do...you don't need help or answer if you don't want. when I put the JCL and my result the question is not for you.