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
how to toggle between single line and multi - line display of a particular record in a subfile?
what is term cua , saa?
What Is The Object Type Of Pf, Lf, Printer File & Display File?
What Is Default Data Type (if You Define Decimals '0') In Physical File?
how can we run a batch job?
what is the use of jdftval in join logical file?
Explain The Keywords Edtcde & Edtwrd?
how can you specify no duplicate key?
records can be read/update/deleted with which file?
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)
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)?
can you display a empty subfile?
when should I use method get, and when should I use method post in my cgis?
what is the use of data structures?
What is a query can be displayed without saving it?