×
Discuss about Archiving, Close of Business, Delivery Setup, Security Management System, Global Processing etc…
Unix script to execute OFS strings
- simoys
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 1
- Thank you received: 0
7 years 4 months ago #21630
by simoys
Unix script to execute OFS strings was created by simoys
Hi All,
I have a requirement where a file contains over 1000 OFS strings. A shell script is to be written to read the file and execute the OFS strings. Any idea how this can be achieved? I know this can be done through a service routine but want to understand how is it done using a script. The release using is R14 TAFC. Thanks in Advance.
I have a requirement where a file contains over 1000 OFS strings. A shell script is to be written to read the file and execute the OFS strings. Any idea how this can be achieved? I know this can be done through a service routine but want to understand how is it done using a script. The release using is R14 TAFC. Thanks in Advance.
Please Log in or Create an account to join the conversation.
- VK
-
- Offline
- Platinum Member
-
- Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
Less
More
- Posts: 1209
- Thank you received: 158
7 years 4 months ago - 7 years 4 months ago #21632
by VK
Cheers
VK
Replied by VK on topic Unix script to execute OFS strings
Hi
It's not a problem to transform incoming text file to OFS format but how you're going to submit it?
To use more convenient ways - OFS.BULK.MANAGER or OFS.POST.MESSAGE - you need jBC code.
If you just transform the text to OFS using a shell script then you can use batch file listener to post OFS messages. This looks the best way in your case...
It's not a problem to transform incoming text file to OFS format but how you're going to submit it?
To use more convenient ways - OFS.BULK.MANAGER or OFS.POST.MESSAGE - you need jBC code.
If you just transform the text to OFS using a shell script then you can use batch file listener to post OFS messages. This looks the best way in your case...
Cheers
VK
Last edit: 7 years 4 months ago by VK.
Please Log in or Create an account to join the conversation.
- tester111
- Offline
- Junior Member
-
Less
More
- Posts: 29
- Thank you received: 0
7 years 3 months ago #21687
by tester111
Replied by tester111 on topic Unix script to execute OFS strings
any code refernce on how to execute bulk ofs?
Please Log in or Create an account to join the conversation.
- VK
-
- Offline
- Platinum Member
-
- Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
Less
More
- Posts: 1209
- Thank you received: 158
7 years 3 months ago #21689
by VK
Cheers
VK
Replied by VK on topic Unix script to execute OFS strings
Hi
Not sure this will work on your release but you can try something like:
(ofs_msg1 and ofs_msg2 are variables where your OFS messages are to be put)
Not sure this will work on your release but you can try something like:
(ofs_msg1 and ofs_msg2 are variables where your OFS messages are to be put)
ofs_msg_all = '<requests><request>' : ofs_msg1 : '</request><request>' : ofs_msg2 : '</request></requests>'
commit_successful = 1
CALL OFS.BULK.MANAGER(ofs_msg_all, ofs_output, commit_successful)
IF NOT(commit_successful) THEN ... raise the error
Cheers
VK
Please Log in or Create an account to join the conversation.
Time to create page: 0.042 seconds