I have one input file with first 10bytes as the key.
Input Data in the first 10 bytes is as follows:
Now my requirement is I want to maintain the key as first 10 bytes only but I want the data as follows:
The actual requirement is as follows:
1. I want to change first 5 bytes to 4 bytes only..............
i.e. ABCDE will change to ABDE
2. I want to add 8th character as follows
if 9th byte has numeric value I should populate 8th byte as zero and
if 9th byte has character No need to populate any thing in 8th byte but I should move 9th and 10th characters to 8th and 9th positions and 10th character should be space.
Please Note : Previously the key is 5,5 after requirement it should change to 6,4.............
I hope you understood my requirement.
May I know whether it can be done using JCL 3.4 commands or using any JCL sort or any other way to do this......
You need z/OS DFSORT V1R5 PTF UK90007 or DFSORT R14 PTF UK90006 (April, 2006) in order to use DFSORT's NUM function. If you don't have the April, 2006 PTF, ask your System Programmer to install it (it's free). For complete details on all of the new DFSORT and ICETOOL functions available with the April, 2006 PTF, see: