AS/400 RPGLE MNTDSPR command

220 pts.
Tags:
AS/400
RPGLE
May I know how the below command work?
D MNTDSPR       E DS                  EXTNAME(TESTPF)
I was compile the file TESTPF with added in new fields, but I did not compile the program. Won't it hit level check? I try to debug and the MNTDSPR is still showing old fields of TESTPF unless I compile the program. Can anyone help?
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 3  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
    If you haven't recompiled it, the compiled *PGM object doesn't know about the new fields, so they aren't included in the program's symbol table. There is no level-check because the DS isn't an I/O operation. It's just a DS; it's just a set of memory definitions.
    32,390 pointsBadges:
    report
  • philpl1jb

    That command makes a data structure based on the field in the file when the program is compiled. 

    The data structure will be named MNTDSPR.

    54,090 pointsBadges:
    report
  • pdraebel
    You will not hit a level check as the file TESTPF is only referenced at the time of compile to construct the Data Structure. This also means that the program only knows the definition of the fields in TESTPF as they were at the time of compile. To get the new field definitions in you need to recompile
    7,545 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: