× 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
  • New Member
More
3 years 3 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.

Please Log in or Create an account to join the conversation.

  • VK
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • TAFC|R13|R19|R20
More
3 years 3 months ago - 3 years 3 months ago #21632 by 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...
Last edit: 3 years 3 months ago by VK.

Please Log in or Create an account to join the conversation.

More
3 years 2 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
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • TAFC|R13|R19|R20
More
3 years 2 months ago #21689 by 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)
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

Please Log in or Create an account to join the conversation.

Time to create page: 0.192 seconds