The Copy_Table subroutine generates a new REV number for the copied table and updates the REVMEDIA file with this new number. Is there any way to keep the same REV number as the source file?
The Copy_Table subroutine generates a new REV number for the copied table and updates the REVMEDIA file with this new number. Is there any way to keep the same REV number as the source file?
Not to my knowledge. It seems that there would be too many problems to contend with in order to try and do this automatically. If the table is being copied into the same folder then you have to contend with two tables with the same REV number existing simultaneously (at least for a little while) in the same folder. If the table is being copied into a different folder then you have to contend with checking to making sure that this REV number doesn't already exist.
It's not that hard to reassign the REV number after the table has already been copied (i.e. rename the DOS files and change the REVMEDIA map) but you also have to contend with dictionary and possibly index tables as well.
Thanks Don, your explanation clarifies the reason for assigning new REV numbers.
Regards
Sedick