IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

TRIM function in PL/I


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ravikanth

New User


Joined: 12 Jan 2006
Posts: 29

PostPosted: Fri Oct 19, 2007 6:56 am
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
Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 295
Location: Singapore

PostPosted: Fri Oct 19, 2007 11:40 am
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: 71
Location: Bangalore

PostPosted: Fri Apr 04, 2008 2:34 pm
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 N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Fri Apr 04, 2008 2:59 pm
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Calling an Open C library function in... CICS 1
No new posts DATE2 function SYNCSORT 15
No new posts Help on PL/I jsonPutValue function PL/I & Assembler 8
No new posts how to use Tso outtrap external function All Other Mainframe Topics 8
Search our Forums:

Back to Top