Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uppercase in one line #8

Open
worksofliam opened this issue Jul 7, 2019 · 1 comment
Open

Uppercase in one line #8

worksofliam opened this issue Jul 7, 2019 · 1 comment
Labels
ilerpg ILE RPG topics

Comments

@worksofliam
Copy link
Owner

I've just seen this blog post and I do only have a two issues with it:

  • For code that's written in 2016, it's still in fixed format.
  • It's so much code just to do an upper case that supports multiple CCSIDs.

In this small blog, I'm going to show you how to do 'uppercase' in one line of code - using Embedded SQL.

Dcl-S CharField Char(100);

CharField = 'hello db2 summit!';

EXEC SQL SET :CharField = UPPER(:CharField);

..and that's it.

@worksofliam worksofliam added the ilerpg ILE RPG topics label Jul 7, 2019
@JDubbTX
Copy link

JDubbTX commented Jan 24, 2024

Should probably mention this too: https://www.ibm.com/support/pages/rpg-cafe-new-built-ins-lower-upper-and-split

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ilerpg ILE RPG topics
Projects
None yet
Development

No branches or pull requests

2 participants