T24 : Amend LOCAL REF with OFS message

1,385 views
Skip to first unread message

T24 Technical Developer

unread,
Feb 15, 2010, 6:23:02 AM2/15/10
to jBASE
Hello

I want generate an OFS message that amend the value of a LOCAL REF in
a FT application.

My code is:
...
Y.REF.BT = 'BT20100207'
CALL GET.LOC.REF("FUNDS.TRANSFER","REF.BT",POS.BT)
Y.OFS.REC = "FUNDS.TRANSFER,DEBIT.CPT.BT/I/PROCESS,USER.OFS/
123456,FT0900880GPX,LOCAL.REF:1:" : POS.BT : "=" :Y.REF.BT
CALL OFS.POST.MESSAGE(Y.OFS.REC, OFS.MSG.ID, Y.OFS.SOURCE.ID,
Y.OPTIONS)


with :
* FUNDS.TRANSFER,DEBIT.CPT.BT : my version OFS.
* REF.BT : my LOCAL REF in FUNDS.TRANSFER application.
* FT0900880GPX : ID of FT to amend by OFS.
* USER.OFS : Login of OFS user.
* 123456 : password of OFS user.
* Y.REF.BT : the value to be insert in the LOCAL REF.

My OFS message is generated and executed but the value of my LOCAL REF
is not changed.
Please help me : How I can amend LOCAL REF FIELD by OFS message ????

Igor Micev

unread,
Feb 15, 2010, 7:52:20 AM2/15/10
to jBASE
Hi,

Try using OFS.GLOBUS.MANAGER()

OFS.MSG = 'YOUR MESSAGE'
OFS.SOURCE.ID = 'GENERIC.OFS.PROCESS'
OFS.MSG.ID = ''
OPTIONS = ''
CALL OFS.GLOBUS.MANAGER(OFS.SOURCE.ID,OFS.MSG)

Regards
IM

On Feb 15, 12:23 pm, T24 Technical Developer <sami.lou...@gmail.com>
wrote:

konyeha francis

unread,
Feb 15, 2010, 7:56:16 AM2/15/10
to jb...@googlegroups.com
Just use the Local Refrence Field name directly (e.g REF.BT::=YOUR VALUE)


Regards

On Mon Feb 15th, 2010 1:23 PM EET T24 Technical Developer wrote:

>Hello
>
>I want generate an OFS message that amend the value of a LOCAL REF in
>a FT application.
>
>My code is:
>...
>Y.REF.BT = 'BT20100207'
>CALL GET.LOC.REF("FUNDS.TRANSFER","REF.BT",POS.BT)
>Y.OFS.REC = "FUNDS.TRANSFER,DEBIT.CPT.BT/I/PROCESS,USER.OFS/
>123456,FT0900880GPX,LOCAL.REF:1:" : POS.BT : "=" :Y.REF.BT
>CALL OFS.POST.MESSAGE(Y.OFS.REC, OFS.MSG.ID, Y.OFS.SOURCE.ID,
>Y.OPTIONS)
>
>
>with :
> * FUNDS.TRANSFER,DEBIT.CPT.BT : my version OFS.
> * REF.BT : my LOCAL REF in FUNDS.TRANSFER application.
> * FT0900880GPX : ID of FT to amend by OFS.
> * USER.OFS : Login of OFS user.
> * 123456 : password of OFS user.
> * Y.REF.BT : the value to be insert in the LOCAL REF.
>
>My OFS message is generated and executed but the value of my LOCAL REF
>is not changed.
>Please help me : How I can amend LOCAL REF FIELD by OFS message ????
>

>--
>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 jB...@googlegroups.com
>To unsubscribe, send email to jBASE-un...@googlegroups.com
>For more options, visit this group at http://groups.google.com/group/jBASE?hl=en


JOSE L MARTINEZ-AVIAL

unread,
Feb 15, 2010, 8:07:52 AM2/15/10
to jb...@googlegroups.com
I haven't used OFS.POST.MESSAGE. Have you tried OFS.GLOBUS.MANAGER(OFS.MESSAGE, OFS.SOURCE.ID)? That's what I use, and it works for me. In any case, the OFS.POST.MESSAGE gives any error message? have you checked the value of Y.OFS.REC after the call?

2010/2/15 T24 Technical Developer <sami....@gmail.com>

Harish Venugopal

unread,
Feb 15, 2010, 8:18:38 AM2/15/10
to jb...@googlegroups.com, sami....@gmail.com
Hi Sami,

This OFS string should ideally help your cause.

"FUNDS.TRANSFER,DEBIT.CPT.BT/I/PROCESS,USER.OFS/123456,FT0900880GPX,LOCAL.REF:1::"= Y.REF.BT

or

"FUNDS.TRANSFER,DEBIT.CPT.BT/I/PROCESS,USER.OFS/123456,FT0900880GPX,REF.BT::"= Y.REF.BT

Both the above do exactly the same and will update the LRF field named REF.BT with a value of Y.REF.BT when the FT is posted. I hope you've not overlooked the fact that you're using OFS.POST.MESSAGE and have verified that the OFS.SOURCE is available and that its common variables are initialized correctly in your program/sub-routine before being used.

Hope this helps.

Regards,
Harish

Harish Venugopal

unread,
Feb 15, 2010, 8:20:32 AM2/15/10
to jb...@googlegroups.com, sami....@gmail.com
Sorry but just noticed that, you're trying to update a FT record (i.e. by mentioning the ID for your OFS message). Are you ensuring that the FT record being updated is not already authorized? If it is already authorized, then you may not be able to update anything in it again.

T24 Technical Developer

unread,
Feb 15, 2010, 8:46:59 AM2/15/10
to jBASE
Hello Harish

Thx u very much for your help.
I have change my OFS message to : "FUNDS.TRANSFER,DEBIT.CPT.BT/I/
PROCESS,USER.OFS/123456,FT0900880GPX,LOCAL.REF:1::"= Y.REF.BT
and it's work now
thx u again !

Ahmed Ali Nisar

unread,
Feb 18, 2010, 11:55:34 AM2/18/10
to jb...@googlegroups.com
Hello Sami,
thats good, actually you need to give the exact Multi value/Sub value Number with the local ref name and there is no difference b/w Post Message and Globus Manger as far as the OFS is concerend, the only difference is the one is OGM is real time where as Post Message Queued and run when one of the agent runs the message will posted by it.  

--
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 jB...@googlegroups.com
To unsubscribe, send email to jBASE-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en



--
Ahmed Ali Nisar
Reply all
Reply to author
Forward
0 new messages