1)In a pf if we delete a record then how to insert a new
record at the same place in that pf?? any logic or code?
2)A batch job is taking a lot of time to run,found that it
is going into loop and wrapping up so how to skip that loop
and process the job without changing the code?
3)In which scenario C D I R comes and C D G F comes in a
job?
4)If a job came to error while processing a file how we can
know at which record the error hit and how to skip that
record and process other records without changing program
code?
Answer Posted / sreenadh
1.post deletion of existing record you have to call QCMDEXC api to run a cl command i.e, RGZPFM then insert the record again
2.you have to fail the looping condition manually in batch debug mode using EVAL then came out from debug
4.Take opt 5 after WRKACTJOB againts the job than opt 14 (work with opened files)+f11 to get RRN value where it stuck currently and whats the file name too
Now go to sql fix the junk data and retry the job again
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is the clp command to access a query/400?
How can we read file using curser? how to define a curser?
how can database records be read without lock ?
what are all the contents of subfile?
what keyword must be used with protect keyword ?
The content of Physical file is as below: hfcftp wruquief SENDPASV 0 CDUP ASCII GET 01100901.CSV ramndk/ECP505.EC0110090 (REPLACE QUIT Thw above commands will get executed when we call STRTCPFTP from CL program.... Now if I want to use SFTP what can be the solution? plz reply in detail....Thank you for ny help... I m using RPG/ILERPG to download...
is there any way I can ease my rpg controls on numeric input fields? How about an input date field?
define the purpose of the *cat function?
what are the different opcodes available in rpg for database access ?
what is the maximum number of subfiles that can specified in a display file ?
how can you specify no duplicate key?
what is the difference between udate and the system date?
What is the difference between crtdupobj and copyf?
What is file information data structure(infds) in as400?
Difference Between Source Physical File & Physical File?