ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Changing field description

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

  • Changing field description

    Hi,

    I have a PF which has some future fields. By Future fields i mean when i creat a PF i add some extra fields to it so that i may use it future if required and i will not need any change to the field. Now say when i use any of the future fields can i change the description of the field using CHGPF or any other way so that the description will read what the field is excatly meant for and not just as Future field.
    Regards,
    KR

  • #2
    Re: Changing field description

    Yes - you answered your own question - you can use chgpf to change description and not recompile programs.

    just make changes in PF dds and run the CHGPF command


    jamie
    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


    • #3
      Re: Changing field description

      Hi,

      even easier than changing the DDS and using CHGPF to recreate the physical file, is to use the SQL statement LABEL ON. It only changes the description but does not recreate the physical file.

      PHP Code:
      LABEL ON COLUMN MyLib/MyFile
            
      (MyField IS 'My New Decription'
      It works for DDS described physical files and SQL defined tables.
      There is no need to recompile any program or module.

      Birgitta

      Comment


      • #4
        Re: Changing field description

        It never fails to amaze me. Someone in Germany and someone in the US teaming up to help someone in India solve a problem.
        You just have to love it!

        Comment


        • #5
          Re: Changing field description

          And to top it all someone in Canada appreciating it.


          BTW thanks all for the help!!!
          Regards,
          KR

          Comment


          • #6
            Re: Changing field description

            Its like a giant benetton commercial.........

            Check out the United Colors of Benetton 2023 Collection for Women, Men, Boys, Girls and Baby - Free returns.


            (I didnt know they were still in business)

            Weekend is coming!!!!
            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