Finding the values of fields at run time

770 pts.
Tags:
AS/400
We can find the value of the fields at run time using debugging the programs.I want to know is there any other option/method which can tell us the value of the fields at run time apart from debugging the program.

 

Thanks



Software/Hardware used:
AS400

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 6  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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • deepu9321
    I think, there is no other possibility. What you want to find exactly? Generally, for tracing the problems debugging will be helpful. Pradeep.
    3,695 pointsBadges:
    report
  • Splat
    One option is to use DSPLY in an RPG program. Or you can output the fields to a print file. Or output the fields to a file.
    7,235 pointsBadges:
    report
  • WoodEngineer
    Here is one technique for printing debug data which is handy. The beauty of this solution is that once the program is working properly, just compile it in your usual way and the debug report is not generated. With this technique you do not have to remove your debugging code. When you want the debug report to be generated compile your program with this parm: DEFINE(DEBUGLOG) .
     FQSYSPRT   O    F  132        DISK                                         <<<DISK not Printer!  
                                                                                                      
     D PrintRec        DS           132                                                               
     D DebugLog        PR                                                                             
     D   DebugMsg                          like(PrintRec) Const                                       
      . . . . . . 
        DebugLog('sting =' + CharVar)  ; // example                                       
                                                                                          
        *INLR = *On ;                                                                     
    
      /End-Free                                                                           
                                                                                          
     P* -------------------------------------------------------------------               
     PDebugLog         B                                                                  
     D DebugLog        PI                                                                 
     D   DebugMsg                          Like(PrintRec) Const                           
      /if defined(DEBUGLOG)                                                               
      /Free                                                                               
        PrintRec = DebugMsg ;                                                             
        Write QSYSPRT PrintRec ;                                                          
      /End-Free                                                                           
      /Endif                                                                              
     PDebugLog         E                                                                           
    6,680 pointsBadges:
    report
  • philpl1jb
    You can put a DUMP in the program at the spot you want to capture. Add the H spec DEBUG(*YES) and you will get a listing of file statuses and all data fields at the point of the dump.
    49,960 pointsBadges:
    report
  • PGMBOB
    Journaling the records you can see before and after the values updated and by which program.
    1,085 pointsBadges:
    report
  • TomLiotta
    ...apart from debugging the program. Apart from debugging, you have to include code in the program that outputs values of variables. That's what "output" operations are supposed to do. Why would you want to know variable values outside of debug? That's one of the purposes of debugging. Debug capability is a significant security exposure. Access to variables inside running programs without debug capability would be a serious flaw in the system. Tom
    125,585 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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following