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 / 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 |
what is message subfile?
What Is The Object Type Of Pf, Lf, Printer File & Display File?
What is Multi-format logical file?
can u plz tell me is there any difference between SHELL SCRIPT & SFTP SCRIPT? I want to run LS & GET(automatically) command from CL program....which script can be used?
WHAT IS DECIMAL DATA ERROR IN RPG IV...WHEN WILL IT HAPPENS?
Define what the operation will do, the purpose of the result field and the purpose of *IN66? HI LO EQ C CALL 'CVTDAT' DTPRM 66
List the steps/commands necessary to accomplish the following: a. Copy data from the file ORDHDR into file ORDHIST b. The file ORDHIST may or may not exist c. If the file ORDHDR does exist, it may or may not contain data d. The file ORDHIST may or may not contain data, if the file does contain data the old data should be erased
define a output queue?
what does opcode post do ?
what are activation group and what are its types.?
what is arrival sequence?
What are the types of Signature validation?