Thanks you Kolusu. I will try that solution.
Regards Jack On Mon, Nov 3, 2025, 17:07 Sri Hari Kolusu <[email protected]> wrote: > > I am using DFSORT to build a few thousands of HSEND WAIT DELETE > commands. I would like to insert a command for a backvol cds every "n" > thousand commands. Is this possible? > > Jack, > > You could have used LINES=n parameter to add a new record after every "n" > lines. However, LINES parameter can only have max of 255. You can tag > every "n" thousand records using WHEN=GROUP and then use it on OUTFIL to > add the new statement. > > Example of tagging every 2000 records. (untested) > > //SYSIN DD * > OPTION COPY > INREC IFTHEN=(WHEN=GROUP, > PUSH=(81:ID=8),RECORDS=2000) > > OUTFIL REMOVECC, > BUILD=(C' HSEND WAIT DELETE STATEMENT',80:X), > SECTIONS=(81,8, > TRAILER3=(' BACKVOL CDS STATEMENT')) > /* > > > Thanks, > Kolusu > > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
