ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Allowing Lowercase in Display File

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Allowing Lowercase in Display File

    Hi,

    We are using a retail AS400 package which allows us to enter only Uppercase letters in their display files. Whatever we enter it takes the uppercase of that letter and stores the same in display file.

    I have checked display file and it does not have any field restrictions like CHECK(UC) or CHGINPDFT etc.

    Our in house display file allows entering data in lower case. Is it something related to SYSVAL? When ever we execute their display file they might be setting some SYSVAL which makes all the values to uppercase?

    We have to change one of their display file to allow lowercase letters but instead of changing each and every field's attribute I would like to see if there is some SYSVAL which is forcing the upprecase letter and change it before calling the program.

    Any ideas?

    Thanks in advance.

    Thanks,
    Ravi

  • #2
    Re: Allowing Lowercase in Display File

    I believe that, unless the actual field in question has CHECK(LC), it will always default to uppercase. Would be nice if there were a way to set a global default to fields, but adding a CHECK(LC) at the record level throws an error.

    Comment


    • #3
      Re: Allowing Lowercase in Display File

      youre funny! Im laughing with you of course...

      the default is always Uppercase you have to tell it to allow lower case..
      You must be a youngster

      PHP Code:
      A            W1EMAIL       40A  B  4  9CHECK(LC
      All my answers were extracted from the "Big Dummy's Guide to the As400"
      and I take no responsibility for any of them.

      www.code400.com

      Comment


      • #4
        Re: Allowing Lowercase in Display File

        Jamie, Redbooks are even more funny !

        from: www.redbooks.ibm.com CHECK(LC) CHGINPDFT(LC)

        Your program can display a field that contains both uppercase and lowercase characters. Both in 1A ?

        If you want to specify CHECK(LC) for all the character input-capable fields in a DDS record format,
        specify CHGINPDFT(LC) at the record level

        If you specify this keyword, lowercase a through z remain lowercase.
        If you do not specify this keyword, lowercase a through z are changed to uppercase. If ? If ? Else !!!

        Note: The CHECK(LC) keyword has no effect on data-entry keyboards. Caps locked !!!
        Data-entry keyboards do not support lowercase characters a through z. |||B|A|R|C|O|D|E||


        CHGINPDFT - unexpected behavior

        Q: I changed one of my B fields in a DSPF to allow lower case chars
        by adding CHGINPDFT(LC) on the field definition.

        After doing that, the underline disappeared.
        I had to go back and explicitly add the underline.
        That doesn't seem right -- or what am I missing?


        A:1 I think what you really wanted to use is CHECK(LC) rather than CHGINPDFT(LC)

        A:2 CHGINPDFT turns on the selected attributes and removes ALL others. A:1 is correct ; you just want to add CHECK(LC).

        Thanks
        Oké, but what if you wanted only lowercase input ?

        Comment


        • #5
          Re: Allowing Lowercase in Display File

          well then you use %xlate or sql to lower case everything once you have control of the data in your program
          All my answers were extracted from the "Big Dummy's Guide to the As400"
          and I take no responsibility for any of them.

          www.code400.com

          Comment

          Working...
          X