Hi All, Can any one give me a suggestion for below prob

One job is in MSGW due to decimal dara error and I find out
stmt error and Value in DMUP.

but my file has millions of records.So how can i find out
on which record the error was occured....?

Answer Posted / kamlesh

use file information datastructure for ur pf in rpg pgm
then write below opcode
POST FILEINFORMATIONDS
before the statement which raise decimal data error. then
use DUMP opcode. finally u will get record number in file
info ds.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to toggle between single line and multi - line display of a particular record in a subfile?

1088


what is term cua , saa?

959


What Is The Object Type Of Pf, Lf, Printer File & Display File?

705


What Is Default Data Type (if You Define Decimals '0') In Physical File?

1151


how can we run a batch job?

735






what is the use of jdftval in join logical file?

1119


Explain The Keywords Edtcde & Edtwrd?

842


how can you specify no duplicate key?

710


records can be read/update/deleted with which file?

639


Hi,Can any body give the code for the below mentioned quetion.?Im trying to get coding in with easily inderstanding.Plese give me the coding for this? 1.How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file is empty,a message should be displayed indicate that there are no records to display. Database file Name=EMPDBF Fields in EMPDBF to be displayed on screen Employee Number- EMPNUM(5,0) Employee Name- EMPNAM(30,A) Employee Address-EMP ADDR(50 A)

1736


1. There is a file called Month. Month has 12 members called Jan, Feb, ..., Dec. How to design a rpg code which can access any member and show its content. (User can ask for any member when required)?

407


can you display a empty subfile?

791


when should I use method get, and when should I use method post in my cgis?

614


what is the use of data structures?

637


What is a query can be displayed without saving it?

674