Page 1 of 1

SKIP last two records while copying - IEBGENER

PostPosted: Fri Oct 16, 2015 11:44 pm
by nkulkarni
Hi,

I have an input file and I need to copy all but last two records to output file, the number of records in the file change everyday.

I'm using IEBGENER as it is a free utility and not licensed, I know we can skip the records before copying using REPRO (SKIP) command.

Could anyone please inform if there is anyway in IEBGENER to skip the last two records of the file irrespective of the number of records (as it change everyday) in the file?

Re: SKIP last two records while copying - IEBGENER

PostPosted: Sat Oct 17, 2015 1:49 am
by BillyBoyo
If you have DFSORT, you can use ICETOOL's SUBSET operator.

I'm not sure if it works if you have SYNCTOOL, you'd have to try, as there is no SYNCTOOL documentation.

Re: SKIP last two records while copying - IEBGENER

PostPosted: Sat Oct 17, 2015 4:25 am
by nkulkarni
Hi BillyBoyo,

Thank you for your response.

I'll see if I can use ICETOOL, I'll check the manuals