- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- String comparision
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2005 10:38 PM
08-04-2005 10:38 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2005 10:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2005 10:59 PM
08-04-2005 10:59 PM
Re: String comparision
this heavily depends on your VMS version. More recent versions of the C runtime library (that comes with the OS!) know the str(n)casecmp function.
And then there's the VMS String manipulation library with its STR$CASE_BLIND_COMPARE , see http://h71000.www7.hp.com/doc/73final/5936/5936pro_003.html#5936case_blind_compare_4
cu,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2005 11:15 PM
08-04-2005 11:15 PM
Re: String comparision
if this question is about functions within a compiled language, see Volker & Martin.
It it is about DCL, then the default comparison is case-sensitive.
For case-blind, use:
$ f$edit(string_a,"upcase") .eqs. f$edit(string_b,"upcase")
of course, instead of .eqs. (EQualString) you can also use .nes. (NotEqualString), .gts. (GreaterThenString), .ges. (Greater or Equal String), .lts. or .les.
hth
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2005 12:10 AM
08-05-2005 12:10 AM
Re: String comparision
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2005 12:14 AM
08-05-2005 12:14 AM
Re: String comparision
says it's
cu,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2005 02:48 AM
08-05-2005 02:48 AM
Re: String comparision
the best practise to use case insensitive function in c language is use of strcasecmp and strncasecmp.
Type
$ HELP CC RUN STRCASECMP
$ HELP CC RUN STRNCASECMP
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2005 02:51 AM
08-05-2005 02:51 AM
Re: String comparision
#define stricmp STRCASECMP
#define strnicmp STRNCASECMP
Warning: strcasecmp and strncasecomp are avaiable only from V7.0 of VMS. If you want to compile with V6 compatibility you can't use these function.
Antonio Vigliotti