I am wanting to concatenate the product of the function Ebcdic(@) to a string.
I get the error 'No closing quote' which I assume is because I need to protect the value returned from the function with quotes. How would I do this?
Any help appreciated.
Concatenating the product of a function to a string
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
I'm assuming you had tried but what about ? The inner parenthese convert the reference to Arg1 into an expression containing a reference to Arg1, preventing side-effects.
(The missing/mismatched quote was probably on the "Doohh".)
Code: Select all
Ans = EBCDIC(Arg1) : "Dohhh"
Code: Select all
Ans = EBCDIC((Arg1)) : " Doohh"
(The missing/mismatched quote was probably on the "Doohh".)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.