Dynamic Set (in terms of scalar)

Hi,

I am trying to write a set i=1,…I , which depends on a scalar (I, provided in the data file).
Is it possible to do that. If yes, how? If no, is there any work around?