Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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
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    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

Srihari Gonugunta

Active User


Joined: 14 Sep 2007
Posts: 295
Location: Singapore

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: 71
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 N

Active Member


Joined: 06 Sep 2007
Posts: 785
Location: Chennai, 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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Strange EXEC function call in z/VM Willy Jensen CLIST & REXX 3 Wed Oct 05, 2016 2:07 pm
No new posts Replace function abdulrafi COBOL Programming 13 Mon Sep 12, 2016 10:12 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us