Automic Workload Automation

  • 1.  How do I add a newline character to a string?

    Posted Oct 24, 2016 04:18 PM
    what entry in UC_CODE is used to represent newline?


  • 2.  How do I add a newline character to a string?

    Posted Oct 24, 2016 04:50 PM
    Not quite certain what you wish to accomplish, but there is the UC_CRLF script function; though it is usually associated with the :PUT_ATT_APPEND or SEND_MAIL statements.


  • 3.  How do I add a newline character to a string?

    Posted Oct 24, 2016 04:57 PM
    I am executing a script where I am issuing a SEND_MAIL with a multiline string as the message.


  • 4.  How do I add a newline character to a string?



  • 5.  How do I add a newline character to a string?
    Best Answer

    Posted Oct 25, 2016 05:31 AM
    I use this within my scripts or a new line.

    :SET &nl# = UC_CRLF()



  • 6.  How do I add a newline character to a string?

    Posted Oct 25, 2016 11:21 AM
    I would add that the variable &nl# needs to be preceeded by a period, or it is discarded.  

    :     SET &TEXT# = "UNLOAD client &client from UC4PROD system...SUCCESS.&nl#"
    :     SET &SLOG# = STR_CAT(&SLOG#,&TEXT#)


  • 7.  How do I add a newline character to a string?

    Posted Oct 25, 2016 03:08 PM
    Ken_Guillemette_8553

    You said your UC4 variable must be preceded by a period or it will be discarded.  This has not been my experience.  I've also coded &nl#&nl# to provide a blank line.


  • 8.  How do I add a newline character to a string?

    Posted Oct 25, 2016 03:16 PM
    I have similar experience to Pete's.  In my limited experience the issues appear to be with the receiving mail system.  Sometimes a single blank line is sufficient to get desired formatting, sometimes two, sometimes a single New Line, sometimes not, etc.

    To my mind this is not specifically an AE issue and it is just a "victim"!


  • 9.  How do I add a newline character to a string?

    Posted Oct 26, 2016 07:46 AM
    I agree with Pete.  I just tested with a double &NL# and it appears to work fine.  Thanks.