Manage Learn to apply best practices and optimize your operations.

Not @Propercase, But @Scottishcase!

We sell some products under the brand name McDougalls. On our AS/400 system,
the product descriptions are all in uppercase. I have created an application
which takes the product description and creates a letter document which
contains a computed field with the product description in proper case.
However, moaned my user, we don't want it to say Mcdougalls, we want it to say

This small formula does the job for any string which may contain mcdougalls as
it's first word. Variations of this could be used for any of those annoying
scottish names...
Note that Prodname needs to be replaced with the field you are converting...
@If(@UpperCase(@Left(ProdName;10))="MCDOUGALLS" ; "McDougalls " +
@ProperCase(@Right(Prodname; " ")) ; @ProperCase(Prodname) )
This was last published in November 2000

Dig Deeper on Domino Resources - Part 7

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...