Job is in MSGW while reading the input file and writing a
new record / updating a reacod due to Duplicate data error.

What action would you take ( C D I R )...?

Answers were Sorted based on User's Feedback



Job is in MSGW while reading the input file and writing a new record / updating a reacod due to Du..

Answer / selvam

take dump option(D) and delete the duplicate record and
retry the job.

Is This Answer Correct ?    10 Yes 0 No

Job is in MSGW while reading the input file and writing a new record / updating a reacod due to Du..

Answer / sudhir

Hi...You can give an 'I' and the job will continue
processing the next records..Note that this will not update
the record..

Is This Answer Correct ?    5 Yes 1 No

Job is in MSGW while reading the input file and writing a new record / updating a reacod due to Du..

Answer / ravi

If a driver CL is there for the RPG, then take a 'C' on RPG, so that lock will be released. Take the RRN of the file using JOB log before cancelling the RPG. Check the record and delete it. Then take a 'R' on CL. Job will run fine.

You can also take an I if you do not want to write it again.

Is This Answer Correct ?    2 Yes 0 No

Job is in MSGW while reading the input file and writing a new record / updating a reacod due to Du..

Answer / anand

Some time you cant able to delete a duplicate record cause
this MSGW may lock that file so in this case you can give I
- ignore, so that record wont get lock,in the mean time imly
try to delete the duplicate records in second session. And
than now give Retrive - 'R'

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More RPG400 Interview Questions

when will come session device error?

4 Answers   TCS,


what is program status data structure?

1 Answers   IBM,


What is SFLNXTCHG keyword why it has used and where? Briefly explain with Example.

2 Answers   IBM,


How to read a record from file where there is multiple record occurrence is available?

1 Answers  


What are the necessary keywords required to code a message subfile?

3 Answers  






What is the RPG cycle?

3 Answers   CSC,


Anybody can explain the difference between SFLCLR & SFLINZ?

7 Answers  


1) How to define keyed file in CL pgm. 2) How can i read particular records in CL pgm from database file.

2 Answers  


what is decimal data error? when it will come and how to achieve(rectify) this error please give me solution as well as code

2 Answers   IBM,


Q:HI friends accually ihave one problem plesase let me know the alternate code of this code. Related field description of code: Add a field, CALvsPRD, "Calendar Day Starts Before/After Production Day" to the parameter set WRKORDER which accepts values 'A' or 'B' o B = Calendar Day Starts Before Production Day o A = Calendar Day Starts After Production Day o Any other value indicates the production and calendar dates are always the same. code: Automatic Execution Of *INZSR Subroutine /Z01 * retrieves WRKORDER field values. /Z01 * Calculate default Production Date and return it to caller. /Z01 * Production date defaults to system date /Z01 C Eval P@Pdate = %DATE() /Z01 * unless Calendar date starts Before PDN(production) date and /Z01 * system time is before PDN Start Time then /Z01 * PDN date is yesterday. /Z01 C If W@CALvsPRD = 'B' and /Z01 C %TIME() < %TIME (W@Strtime) /Z01 C Eval P@Pdate -= %Day(1) /Z01 * unless Calendar date starts After PDN date and /Z01 * system time is *GE PDN(production) Start Time then /Z01 * PDN date is tomorrow. /Z01 C ElseIf W@CALvsPRD = 'A' and W@Strtime > *Zero and /Z01 C %TIME() >= %TIME (W@STrtime) /Z01 C Eval P@Pdate += %Day(1) /Z01 C EndIf /Z01 C Eval *InLr = *On

0 Answers   IBM,


If the last record of a file has been read, and the next operation on that file is a READ operation, what will be the values of the input fields for that file? A. They will be blank and/or zero. B. They will be null. C. They will equal the values of the first record in the file. D. They will equal the values of the last record read.

3 Answers  


What is the syntax of passing parameters to a procedure by value?

1 Answers  


Categories