I have a small requirement, where i need to replace some values in a sequential file, if a numeric or alphanumeric or alphabetic value is identified.
e.g. if the file have numbers from 01 to 11 for a single record, the numbers will be replaced with 'AA' or if the file have numbers from 12 to 21, the numbers will be replaced by
'BB', or if the file have alphabets ranging from 'A' to 'G', the alphabets will be replaced with '001'
I know it can be achieved through syncsort using ifthen:
OUTFIL IFTHEN=(WHEN=(1,80,SS,EQ,C'01'),.....
but for every single value, I have to write a separate statement like this. Is there any other way to achieve this in more simpler way.. for this small requirement i don't want to use COBOL, and REXX is not allowed here.. so looking for solution in JCL only.