DSPATR(ND)

270 pts.
Tags:
AS/400 Display File
CL
CLLE
DDS
RPG
RPGLE
I AM USING AN INDICATOR ON DSPATR(ND) TO DETERMINE WHEN TO DISPLAY A FIELD. IF THE INDICATOR IS OFF, I DON'T WANT TO SEE THE FIELD. AT SOME POINT IN TIME, THE INDICATOR IS ON, SO THE FIELD SHOWS. IF I LATER TURN OFF THE INDICATOR, THE FIELD STILL SHOWS UP. ONCE IT DISPLAYS, IT WILL NOT GO AWAY NO MATTER WHAT THE INDICATOR IS. I DEBUGGED THE PROGRAM AND I KNOW THE INDICATOR IS OFF BEFORE I DO THE EXFMT.


Software/Hardware used:
AS400
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

I PROBABLY SHOULD HAVE ADDED THAT I AM SETTING ON AN ERROR MESSAGE. IF THERE IS AN ERROR, THAT’S WHEN I SET MY INDICATOR NOT TO DISPLAY THE FIELD.

 

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • TheRealRaven
    Without seeing the DSPF source plus the relevant program source, there isn't much that can be said. There may be dozens of possible reasons that could be guessed. No way to know which guesses might fit.

    Best is almost always to create a test program that only manipulates the problem portion of the file. Much easier to debug limited code than to dig through a complex piece of production code. A test program might only require a couple dozen lines of source, and others can use it to run tests on their own systems.
    37,215 pointsBadges:
    report
  • ToddN2000
    Is the indicator being used for anything else other than controlling the ND ? We have some very large program that use all the indicators. We have to be very careful when reusing them for another purpose. 

    I am a little confused though, when you say "IF THE INDICATOR IS OFF, I DON'T WANT TO SEE THE FIELD". In most cases you would turn ON the indicator for the DSPATR(ND) to not display the field. Leave it OFF when you want to see the field. 

    Like Raven said, it tough without seeing the code. Can you post your   DDS and the program logic for displaying the screen? This will help us get a better understanding of what you are attempting. 

    136,970 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: