Vijay: You can go for multi threading. If you follow multi threading like having LOAD, SELECT and PROCESS routine. It solves the performance issues. May be for Writing you can use WRITESEQ for each record for Build List.
Santosh On Tue, Jul 5, 2011 at 7:46 AM, Vijay Ranganath < [email protected]> wrote: > Thank you for your code it helped me a lot wahaj, I think opening the file > and closing it in batch many times causes a performance issue. Mean while if > u have any other code to achieve this kindly share ... > > > Regards > Vijay.R > Technical Analyst > > > > > On Mon, Jul 4, 2011 at 12:21 PM, Wahaj Kazmi <[email protected]> wrote: > >> >> Dear Vijay, >> >> You need to create an array in which your formated data is placed >> e.g: >> *Y.RET<-1> = >> FMT(Y.ACC.NO,"22L"):"|":FMT(Y.CUS.NAME,"35L"):FMT(NO.DAYS,"10L"):"|":FMT(Y.INPUTER,"22L"):"|":FMT(Y.AUTHOR2,"22L) >> * >> then use the following commands to write the records of array in text file >> >> * RECORD.ID = "My Report":".txt" >> FILE.NAME = "REPORTS"* >> * >> OPEN FILE.NAME TO F.PTR ELSE V.ERROR.NO = 2 >> WRITE Y.RET TO F.PTR,RECORD.ID ON ERROR V.ERROR.NO = 3 >> CLOSE F.PTR* >> Regards, >> >> Syed Wahaj Kazmi >> Technical Analyst >> Meezan Bank Limited >> >> On Fri, Jul 1, 2011 at 10:20 AM, Vijay Ranganath < >> [email protected]> wrote: >> >>> I am writing BATCH routine to generate a advice, give the code >>> snippet to save the fetched records help me with some more ways to save that >>> report, like text file or any other way kindly help on this thanking you. >>> >>> Regards >>> Vijay.R >>> Technical Analyst >>> Techmill Technologies. >>> >>> >>> -- >>> Please read the posting guidelines at: >>> http://groups.google.com/group/jBASE/web/Posting%20Guidelines >>> >>> IMPORTANT: Type T24: at the start of the subject line for questions >>> specific to Globus/T24 >>> >>> To post, send email to [email protected] >>> To unsubscribe, send email to [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/jBASE?hl=en >>> >> >> -- >> Please read the posting guidelines at: >> http://groups.google.com/group/jBASE/web/Posting%20Guidelines >> >> IMPORTANT: Type T24: at the start of the subject line for questions >> specific to Globus/T24 >> >> To post, send email to [email protected] >> To unsubscribe, send email to [email protected] >> For more options, visit this group at >> http://groups.google.com/group/jBASE?hl=en >> > > -- > Please read the posting guidelines at: > http://groups.google.com/group/jBASE/web/Posting%20Guidelines > > IMPORTANT: Type T24: at the start of the subject line for questions > specific to Globus/T24 > > To post, send email to [email protected] > To unsubscribe, send email to [email protected] > For more options, visit this group at > http://groups.google.com/group/jBASE?hl=en > -- Mobile: 973-39406098 "Nobody can go back and start a new beginning, but anyone can start today and make a new ending" -- Please read the posting guidelines at: http://groups.google.com/group/jBASE/web/Posting%20Guidelines IMPORTANT: Type T24: at the start of the subject line for questions specific to Globus/T24 To post, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
