Solved

How to obtain RPG formatted dump ?

Posted on 2013-02-02
2
3,084 Views
Last Modified: 2013-02-03
How to obtain RPG formatted dump  for any error like this or decimal data error?

after obtaining the dump where to look into for the DUMP and how to read that DUMP?


Cause . . . . . :   RPG procedure AGRPGM in program PRODLIB/AGRPGMat statement 1083 performed an arithmetic operation which resulted in a value that is too large to fit in the target.  If this is a numeric expression, the overflow could be the result of the calculation of some intermediate result.
 Recovery  . . . :   Contact the person responsible for program maintenance to determine the cause of the problem.
 Possible choices for replying to message . . . . . . . . . . . . . . . :  
    D -- Obtain RPG formatted dump.     S -- Obtain system dump.
     F -- Obtain full formatted dump.
     C -- Cancel.
     G -- Continue processing at *GETIN.



TIA
Oramcle.
0
Comment
Question by:Oramcle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Assisted Solution

by:tliotta
tliotta earned 100 total points
ID: 38848547
It's not clear what you are asking.

When a message such as that one appears, you are expected to enter a reply value that is one of those listed. To get a dump out of the program, you enter a character "D".

But if you are asking how your program can generate a dump on its own, you would have it execute a DUMP instruction at the point where you want one. In order for the DUMP instruction to function, the program must be compiled with a DEBUG() control specification (i.e., an H-spec) that allows dumps or the instruction must use the (A) operation extender.

The available variable memory area is dumped along with information about the program execution state. The volume of information included in the dump is somewhat controlled by different parameters of the DEBUG() keyword and by use of the RMVOBS() program attribute. If all observability is removed, there will be no formatted information that can be dumped.

Details are in the Debugging and Exception Handling topic of the ILE RPG Programmer's Guide.

A better answer might be possible if the question can be explained a little more.

Tom
0
 
LVL 35

Accepted Solution

by:
Gary Patterson earned 400 total points
ID: 38848887
I'm assuming you just don't know how to find the actual spooled file created by the dump.

After you take the "D" option, a spooled file called QPPGMDMP is created associated with the job that threw the error message.

On the detailed message info screen above, press F9, and make a note of the name, number, and user of the job that threw the message.

Use the WRKJOB command, by typing WRKJOB(F4) and filling in the 3-part job name.  Press enter, and then take option 4 to display the spooled files for that job.  Look for QPPGMDMP.

Note that if your profile is set to use *BASIC assistance level, dumps may be hidden.  Press F21 to change the assistance level to *INTERMED if QPGMDMP files aren't displayed on the Work With Spooled Files screen.

-Gary Patterson
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
Popular third-party chat platforms like Slack, Discord, and Telegram are just a few of the many new productivity applications that are being hijacked by cybercriminals to create command-and-control (C&C) communications infrastructures for their malw…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question