@Sudhakar I am not using OFS.GLOBUS.MANAGER @Pawel : I just wanted to know if der is any other way to charge customer accounts at COB. I don't want to write two routines to do it. I get what you are trying to say but I was looking for a simpler solution. Anyways, tnx
Thank You, Ankit Patel On Sat, Jul 3, 2010 at 9:34 PM, Sudhakar-"Dare to Bare" < [email protected]> wrote: > Hi, > > If you're using OFS.GLOBUS.MANAGER, your response will be stored in the > OFS.MSG argument. > > If you want to to identify the message you're getting through your > request, In OFS.SOURCE you're using in the program, you have to use the > USE.PREFIX field. So that all the request's and responses coming through the > OFS.SOURCE will be prefixed with the name you gave in OFS.SOURCE > application. > > Regards, > Sudhakar > > On Sat, Jul 3, 2010 at 2:04 AM, Pawel (privately) <[email protected]>wrote: > >> Hi Ankit, >> >> >> >> I think, that you are not thinking right. >> >> >> >> OFS.POST.MESSAGE is a T24 function to perform OFS *in the background*, >> outside your current transaction. You can not really control its results in >> a synchronoous way. There is a (request) queue which is written by various >> (not only yours) processes. Queue like a queue - may be unpredictable long. >> >> >> >> What you are facing is likely "unprocessed" request. You write it quickly >> to queue, but you do not have answer in response queue yet. Put SLEEP 180 >> after OFS.POST.MESSAGE call and likely your program will start working ;) >> :)))) But do not tell to people please, that I asked you to do. >> >> >> >> Please redesign your process. You may do few things to treat >> OFS.POST.MESSAGE in a "synchronous" way, but remember that it will be >> cheating yourself. >> >> >> >> Kind regards >> >> Pawel >> >> >> >> Dnia 2-07-2010 o godz. 18:54 Ankit Patel napisaĆ(a): >> >> Hi Mohan, >> >> My routine runs at COB and OFS.MESSAGE.SERVICE is running in AUTO. But as >> the cob runs in debug mode, have to manually launch OFS.MESSAGE.SERVICE >> after COB finishes. My problem is I need to charge customer's. So I need to >> check if OFS was successful or not from the same routine that is sending the >> OFS message. >> >> Tnx, >> Ankit Patel >> >> On Fri, Jul 2, 2010 at 7:08 AM, Mohankumar Balasubramaniam < >> [email protected]> wrote: >> >>> Hi, >>> >>> Can you check whether OFS.MESSAGE.SERVICE is running in AUTO? >>> Then only you message will be processed from OFS.MESSAGE.QUEUE. >>> >>> Regards, >>> Mohan >>> >>> >>> On Fri, Jul 2, 2010 at 5:26 AM, ankit <[email protected]> wrote: >>> >>>> Hi All, >>>> >>>> I am posting transaction from a main line program that runs as a >>>> service every 60 seconds using OFS.POST.MESSAGE. >>>> >>>> Syntax: >>>> CALL >>>> OFS.POST.MESSAGE(OFS.MSG,OFS.MSG.ID,'GENERIC.OFS.PROCESS',OPTIONS) >>>> >>>> My problem is that, after I call OFS.POST.MESSAGE. I can't read the >>>> record from file >>>> OFS.RESPONSE.QUEUE using the id returned in OFS.MSG.ID. The record is >>>> somehow deleted. I want to read the record to check if the transaction >>>> went through or not. >>>> >>>> NOTE that the OFS.RESPONSE.QUEUE service is not set to purge the >>>> records from the queue. >>>> >>>> Any help would be appreciated. >>>> >>>> Ankit Patel. >>>> >>>> -- >>>> 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 > -- 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
