SORT – TO REPLACE A CHAR WITH ANOTHER CHAR – ALTSEQ
In SORT, we have the keyword ALTSEQ, which can be used to change all the occurrence of a char to another desired character. Suppose if we want to change all the low values (Whose Hex value is X’00’) to Spaces (Whose Hex Value is X’40’). Then the following SYSIN works.
//SYSIN DD *
SORT FIELDS=COPY
ALTSEQ CODE=(0040)
OUTREC FIELDS=(1,80,TRAN=ALTSEQ)
/*
——————————————————————————————————–
In United States, If you would like to Earn Free Stocks, Credit card Points and Bank account Bonuses, Please visit My Finance Blog
——————————————————————————————————–
You may also like to look at:
Working on Mainframes – Is Change to a different technology necessary |