bigbalbossa
Programmer
All,
I have a script that calculates an nth value. I need to use this value to assign a number to every record in my file.
For example, if my datafile contains 2000 records and i want to keep 100 nth'd records, my value will be 16 (based on a formula in my script). Now, i need to print each record while incrementing a counter 1 to 16, then back to 1 to 16...and so on, until each rec has a value.
Make sense?
I have a script that calculates an nth value. I need to use this value to assign a number to every record in my file.
For example, if my datafile contains 2000 records and i want to keep 100 nth'd records, my value will be 16 (based on a formula in my script). Now, i need to print each record while incrementing a counter 1 to 16, then back to 1 to 16...and so on, until each rec has a value.
Make sense?