Author: Robert Sample
Posted: Tue Jul 26, 2016 6:19 pm (GMT 5.5)
Questions that come to mind upon reading your post:
1. Why do you need to read the data set before deleting the records?
2. What program or utility are you expecting to get RC 8 with?
3. Why do you have to use File Aid?
4. Why, after almost 8 years on this forum, do you call it a "file"? z/OS has tape files and Unix System Services files -- everything else is a data set.
The quick and easy way to delete the records in the data set is to use IEBGENER with SYSUT1 DD DUMMY and SYSUT2 being the data set. No, it does not use File Aid and no it does not read the records before deleting them, but it will remove all records. And you may -- or may not -- get RC 8 depending, again, upon what program you are using to read the data set.
_________________
TANSTAAFL
The first rule of code reuse is that the code needs to be worth re-using.
"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." -- Donald Knuth
Posted: Tue Jul 26, 2016 6:19 pm (GMT 5.5)
Questions that come to mind upon reading your post:
1. Why do you need to read the data set before deleting the records?
2. What program or utility are you expecting to get RC 8 with?
3. Why do you have to use File Aid?
4. Why, after almost 8 years on this forum, do you call it a "file"? z/OS has tape files and Unix System Services files -- everything else is a data set.
The quick and easy way to delete the records in the data set is to use IEBGENER with SYSUT1 DD DUMMY and SYSUT2 being the data set. No, it does not use File Aid and no it does not read the records before deleting them, but it will remove all records. And you may -- or may not -- get RC 8 depending, again, upon what program you are using to read the data set.
_________________
TANSTAAFL
The first rule of code reuse is that the code needs to be worth re-using.
"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." -- Donald Knuth