How to cycle sequence number.
From: Shirley <shirley_at_odin.mda.uth.tmc.edu>
Date: 28 May 1993 18:52:43 GMT
Message-ID: <1u5n1rINNqrc_at_oac4.hsc.uth.tmc.edu>
Date: 28 May 1993 18:52:43 GMT
Message-ID: <1u5n1rINNqrc_at_oac4.hsc.uth.tmc.edu>
I have created a sequence to generate unique numbers which are to be used
as filenames. When I have filled up one folder with 50 files, I want to
move the another folder and start the filename with the MinValue of the
sequence.
Example:
folderA has files 1, 2, 3 ... 50
folderB has files 1, 2, 3, 4, ...50
folder C has files 1, 2, etc
This is how I created the sequence
create sequence GenFileName
increment by 1
start with 1
maxvalue 1000
minvalue 1
noCycle
order;
Question: Is using the sequence the best way to accomplish this? What other methods should I look into? Received on Fri May 28 1993 - 20:52:43 CEST