Automic Workload Automation

 View Only
  • 1.  Issue with parsing multiple lines

    Posted Aug 21, 2019 05:12 PM
    Hi,
     I am reading a database column which has data stored as a multiline text.
     How do I make that text to a single line? The issue is the web service does not accept multiline data as a payload.

     How do I convert the text that I read to a single line? any builtin functions?

    Thanks
    Vijay


  • 2.  RE: Issue with parsing multiple lines

    Posted Aug 21, 2019 05:36 PM
    Typically a line break is represented by CHAR(13) and CHAR(10).  If you can change your database select statement, you should be able to do something like this in your SQL to remove them;
    • REPLACE(REPLACE(column, CHAR(13), ''), CHAR(10), '')



    ------------------------------
    Pete
    ------------------------------



  • 3.  RE: Issue with parsing multiple lines

    Posted Aug 22, 2019 10:48 AM
    Thank You Pete, Instead of Automic as you suggested on the query I did and it worked.
    The only change is In Oracle instead of CHAR I need to use CHR to work.

    Thanks
    Vijay