My question is i want to append one value from one dataset to another dataset.
Below is the screenshot of the first dataset.
Below is the screenshot of the second dataset.
I want the 0 value which is present at the 50th position the needs to added in the second file at 50th position, so how i can do it using JCL using a sort step.
This needs to be done using a step in JCL , please help me out.
I would suggest you to insert sequence numbers at the end (position 81) in both the datasets and do a RIGHT JOIN in DFSORT with sequence number as key. Here is a solution using ICETOOL which does all the tasks in one step.
Contents in XXXXXX.PS.A dataset:
Contents in XXXXXX.PS.B dataset:
And, contents in the final output dataset, XXXXXX.PS.OUT3:
Hope this helps.