I have to move some values to particular field in my input record based on some condition. Is it possible to do that in SORT JCL?
E.g I have a input record like (xxx00000xxxxxxxxxxxxx)
I have to perform the validation : If (Start position(4),length(5)) = zeros, then copy the entire record with repacing ''123" in first 3 bytes. If the validation fails it must copy the record without replacing anything.So each and every record should be there in output.
So my output will look like (12300000xxxxxxxxxxxxxx).
Is it possible to do this in SORT JCL or any other utilities?