Absent Member.
Absent Member.
10453 views

How do I use the carriage return character in the string functions in an orchestration?


For example, if I want to use the CONTAINS function to determine if there is a carriage return, what can I use as the input parameter?

I tried CONTAINS(Working_data_string,"\n") and CONTAINS(Working_data_string, "\r") and neither seem to work. They always return false, even when there is a carriage return in the string.

Any ideas?

Thanks.
0 Likes
3 Replies
Highlighted
Not applicable

Re: How do I use the carriage return character in the string functions in an orchestration?


just a though because a carriage return in Windows format includes a line feed as well where as in Unix type OS's there's only a line feed did you try the combination of literals for CR and LF?
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: How do I use the carriage return character in the string functions in an orchestration?


There is no good answer for this, so please put in an enhancement request.

I did work around this once by setting a hidden memo field to ZZ(newline)ZZ and then pulling the string after and before the ZZ's within the orchestration. Then I had a string with newline in it to use for other things. Ugly, but the best I could come up with.
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: How do I use the carriage return character in the string functions in an orchestration?


Thanks Lynn. This help me! I was trying a similar workaround (grabbing line breaks in a hidden field to use in orchs) without success. Your way did the trick though. Guess the 'SUBSTRINGAFTER' and 'SUBSTRINGBEFORE' aspect was the key.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.