Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
TRIM function in PL/I

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER
Author Message
ravikanth

New User


Joined: 12 Jan 2006
Posts: 10

PostPosted: Fri Oct 19, 2007 6:56 am    Post subject: TRIM function in PL/I
Reply with quote

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
View user's profile Send private message
References
PostPosted: Fri Oct 19, 2007 6:56 am    Post subject: Re: TRIM function in PL/I Reply with quote

Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 130
Location: Pune

PostPosted: Fri Oct 19, 2007 11:40 am    Post subject:
Reply with quote

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
View user's profile Send private message
roopannamdhari
Warnings : 1

New User


Joined: 14 Sep 2006
Posts: 35
Location: Bangalore

PostPosted: Fri Apr 04, 2008 2:34 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Gnanas SNG

Senior Member


Joined: 06 Sep 2007
Posts: 414
Location: India

PostPosted: Fri Apr 04, 2008 2:59 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER All times are GMT + 6 Hours
Page 1 of 1