my input file has the value NLN in 346th position and 01Q in 369th position.
i want to check from the 346th position, if the value is NLN then I have to change it to NLQ.
and i have to check the column 369th position,if the value is 01Q then I have to change it to 01D.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
I don't think your control statements are what you actually want based on your statement "the above values I have to replace to the positions 369 and 395,415". All of your WHEN conditions have 346,3 but I assume they should have 369,3, 395,3 and 415,3 as well. At any rate, if you do have different positions in different clauses, then you can use HIT=NEXT for all but the last IFTHEN clause: