natinuk
New User
Joined: 23 Nov 2006 Posts: 22 Location: India
|
|
|
|
I have the following string with comma at the end
NAME = "ABCDEFGH IJKLMN OPQRSTU,"
output = SUBSTR(NAME,26,-1) || ' ' || SUBSTR(NAME,1,23)
I am getting the following output,
With PL/I compiler V2.7 ---->ABCDEFGH IJKLMN OPQRSTU
With PL/I compiler V3.4 ----> ABCDEFGH IJKLMN OPQRSTU
an additional space is prefixed in string output in the Enterprise compiler (V3.4)
How would the above SUSBTR work in PL/I compiler V2.7 & V3.4? What is the difference?
I am not getting any exceptions like STRINGRANGE but an additional space is coming ahead of the string output of the enterprise compiler. Please assist
Advanced thanks for your help! |
|