ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Display 00 in a numeric field

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

  • Display 00 in a numeric field

    I have a 3 numeric field in a file that I am trying to display as 00 on my display. I use the EDTCDE(J) code but it comes out with just one zero not two. Can one recommend a way to display a 3 numeric pack field as 00 on a dds display screen.

    Thanks,

    DAC

  • #2
    Re: Display 00 in a numeric field

    Go to


    in the search box on the left hand side enter EDTWRD

    look for the result "EDTWRD (Edit Word) keyword for display files"
    Denny

    If authority was mass, stupidity would be gravity.

    Comment


    • #3
      Re: Display 00 in a numeric field

      Originally posted by dcutaia
      I have a 3 numeric field in a file that I am trying to display as 00 on my display. I use the EDTCDE(J) code but it comes out with just one zero not two. Can one recommend a way to display a 3 numeric pack field as 00 on a dds display screen.

      Thanks,

      DAC
      What we would also need to know is how you would like any other number to be displayed.

      ie:

      Are you only going to be displaying 2 digits for any number?

      Do you want to display all 3 digits for all numbers, zero compressed, but 0 becomes 00?
      Michael Catalani
      IS Director, eCommerce & Web Development
      Acceptance Insurance Corporation
      www.AcceptanceInsurance.com
      www.ProvatoSys.com

      Comment


      • #4
        Re: Display 00 in a numeric field

        Originally posted by MichaelCatalani View Post
        What we would also need to know is how you would like any other number to be displayed.

        ie:

        Are you only going to be displaying 2 digits for any number?

        Do you want to display all 3 digits for all numbers, zero compressed, but 0 becomes 00?
        Exactly. I want zeros to appear as 00 instead of just 0.

        Comment


        • #5
          Re: Display 00 in a numeric field

          the EDTWRD mentioned above is what you are after...
          I'm not anti-social, I just don't like people -Tommy Holden

          Comment


          • #6
            Re: Display 00 in a numeric field

            I used the EDTCDE(X) and it worked. It populated 00 in my field when the field is zeros.

            Thanks,

            DAC

            Comment

            Working...
            X