Bill, then how is the industry id modified?
--- In amibroker@yahoogroups.com, Bill S <wjs45...@...> wrote: > > import with AmiBroker ASCII import program and include "$OVERWRITE 1" in the > format file. > > > On Wed, Jun 9, 2010 at 12:39 PM, sohamdas <soham...@...> wrote: > > > > > > > I think, I was not clear in putting forth the problem. > > > > I already have the stocks in my db. I need to reorganise it, and classify > > it as per the industry. > > > > The code and the industry list I have in a text file. > > > > Soham > > > > --- In amibroker@yahoogroups.com <amibroker%40yahoogroups.com>, "sanjiv" > > <sumangalam@> wrote: > > > > > > Hello, > > > > > > You may not need to loop through the the file and not use an AFL for it. > > Please read the help file for ASCII Import. There you may find the solution > > to do what you are looking for. > > > > > > With regards > > > > > > Sanjiv Bansal > > > > > > --- In amibroker@yahoogroups.com <amibroker%40yahoogroups.com>, > > "sohamdas" <sohamdas@> wrote: > > > > > > > > Can somebody give me a suggestion how to proceed. > > > > > > > > Would be grateful! > > > > --- In amibroker@yahoogroups.com <amibroker%40yahoogroups.com>, > > "sohamdas" <sohamdas@> wrote: > > > > > > > > > > Hi Folks, > > > > > > > > > > I have got a text file, which contains the exchange code of a > > particular scrip and its industry seperated by a comma. > > > > > > > > > > I want to implement the following logic inside my afl: > > > > > > > > > > 1. Read the file. > > > > > LOOP EACH LINE > > > > > 2. Read the exchange code > > > > > 3. Read the industry > > > > > 4. If this industry exists in the industry list, move the > > stock(present in the db) to this industry group > > > > > 5. If no, create this and move the stock > > > > > END LOOP > > > > > > > > > > I am at loss, because I dont know how to implement this logic in > > AFL.Any help/pointers will be helpful > > > > > > > > > > > > > > > > > > >