I have a requirement where a file is of lrecl = 1500,
i have to check if a partucular field is empty and if it's empty I have to populate that field by some default value else I have to leave as it is
eg:
fld1 field2 ...........
suppose field2 is empty I have to populate it with some default value, else
if it has some value, leave as it is.
1. This code, will not change 1-9 bytes.
2. At 10th byte,with length 1, if the byte is " "(space), make it "U",
otherwise it will be as it was before
3. Rest of the bytes from 11 to end will be same.
here what is the limit po length of the field that is going to be replaced
eg. u r replacing by 'u' which is of length 1, can the length of the field, be 100. I think the limit is only 64.
In my cazse:
my field that is to be replaced is of length 100 chars.
so,
INREC FIELDS=(1,9,10,1,
CHANGE=(100,C' ',C'default value'),NOMATCH=(10,100),
11,69)
Please let me know ur suggestion and comments
----------------------------------------------------------------