| Author |
Message |
ravikanth
New User
Joined: 12 Jan 2006 Posts: 10
|
|
|
|
Hello All
I was trying to use the function "TRIM" in PLI. qw gives an explanation.
but when i tried using it in my program. It is giving a compile error.
Error Message:"IDENTIFIER 'TRIM' IS NOT DECLARED. EXTERNAL ENTRY ASSUMED. 'TRIM' EXPLICITLY DECLARED BUILTIN BUT IS NOT A BUILTIN FUNCTION NAME.DECLARATION DELETED."
Find my piece of code below:
DCL (STG, TRIM) BUILTIN;
In_field CHAR (5) INIT('');
Out_field CHAR(LENGTH(In_field)) VARYING
Out_field = TRIM(In_Field, ' ');
Thanks in advance,
Ravikanth Chavali |
|
| Back to top |
|
 |
References
|
Posted: Fri Oct 19, 2007 6:56 am Post subject: Re: TRIM function in PL/I |
 |
|
|
 |
Srihari Gonugunta
Active User
Joined: 14 Sep 2007 Posts: 117 Location: Pune
|
|
|
|
| TRIM function is supported by all the PL1 compilers(1.1 to 3.5), as far as I know. Let me know what is the PL1 compiler version you are using. |
|
| Back to top |
|
 |
roopannamdhari Warnings : 1 New User
Joined: 14 Sep 2006 Posts: 34 Location: Bangalore
|
|
|
|
Hi,
i am also getting same compilation error for built in functions COPY,CENTERLEFT and my PL\1 compiler is "VERSION 1 RELEASE 5.1" please help me in resolving this error.
Thanks, |
|
| Back to top |
|
 |
Gnanas SNG
Senior Member
Joined: 06 Sep 2007 Posts: 370 Location: India
|
|
|
|
Okay.
TRIM BIF is not available on IBM PL/I V2R3 & PRIOR.
But I have checked and found it on IBM PL/I V3R6. |
|
| Back to top |
|
 |
|
|