Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Regarding String Comparision

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
raghavendrapk

New User


Joined: 06 Oct 2005
Posts: 2

PostPosted: Thu Oct 06, 2005 6:58 pm    Post subject: Regarding String Comparision
Reply with quote

Hello everybody
I am Raghavendra P K , beginer in cobol , i have a doubt regarding string comparision .

My doubt is , Is there any specific function, or command to compare two strings .

Thanks and Regards

Raghavendra P K
Back to top
View user's profile Send private message

Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Thu Oct 06, 2005 8:47 pm    Post subject: Re: Regarding String Comparision
Reply with quote

Hi,
You can declare A & B as alphanumeric and compare using IF as below.
01 A PIC X(20) VALUE 'HELLO WORLD'.
01 B PIC X(20) VALUE 'HELLO WORLD'.
....
IF A=B THEN DISPLAY "A AND B ARE IDENTICAL".
I don't think,we have FUNCTION for this.
Regards,
Sridevi.
Back to top
View user's profile Send private message
raghavendrapk

New User


Joined: 06 Oct 2005
Posts: 2

PostPosted: Fri Oct 07, 2005 9:18 am    Post subject: Thanks
Reply with quote

Thanks Sridevi for clarifying my doubt
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts Find a string in PS file opened in br... mukkas CLIST & REXX 3 Sat Feb 24, 2018 2:15 pm
No new posts Comparision with current time arunsoods DFSORT/ICETOOL 5 Thu Nov 09, 2017 10:37 am
No new posts line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us