My requirement is to append the existing backup file and i need to open that in disp=mod only.but if i run this job all the existing records will be flushed.Any idea how to open the ods file in disp=mod status ???
Try using IN/OUTFILE (DDNAME) instead of I/ODS. Include the file defs for each DDNAME in the IDCAMS JCL. Code the OUTFILE disp as (MOD,CATLG,DELETE) or some such. Or maybe (MOD,KEEP,DELETE) for the 2nd file.
The one drawback is that the IP files must exist or you'll get a JCJ err (not a bad RC) and the rest of your job will flush.