In RPG program one file using as a PRIMARY file while
running program some of the records reading twice any body
know why its happening

Answers were Sorted based on User's Feedback



In RPG program one file using as a PRIMARY file while running program some of the records reading t..

Answer / prabhakar

This will happen if there is any duplicate records in
physical file..

Is This Answer Correct ?    3 Yes 1 No

In RPG program one file using as a PRIMARY file while running program some of the records reading t..

Answer / prabhakar

This will happen if there is any duplicate records are
exists

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More RPG400 Interview Questions

Q:Hi all,i want accurate answer with code using in built functions.please sent me code as soon as posible. I have program nmed PGM1 which '' RETRIEVE Current production date''should correctly default the production date for the user who is issuing raw materials to the manufacturing.The production date can be different from the celendra date. However, the program does not make the correct adjustment for all manufacturing plants. there is a parameter which determines the production start time e.g. 07:00 if the system time precedes this,the program subtracts one from the celendra day.This work fine when the celendar day starts after production day as it does in England,the system should be adding one to the celendar day during the overlap. unfortunately the program was desined to assumed the celendar day always starts before the production day. Change required in the program: Change the PROGRAM PGM1 to use the new parrameter to decide whether to add or subtract 1 from the celendar day when determining the production date.

0 Answers   TCS,


How to read data from Nth member of a physical file containing some X number of members in it? "Provided member names are unknown"

4 Answers  


list down and describe the sub systems vailable

5 Answers   IBM,


I have file with data as follows data 1 2 3 4 5 I need to read 1 and 5 ,then 2 and 4 then like.. upto end of file, can any one help on this

3 Answers   ISG,


How to write record if no field or the field are different in physical file in rpgle ?

0 Answers  






1.I Have a physical file , i want to read the data from the each and every member of the File in the CL Program.How do you achieve this. 2.How do you do the same in RPG?. do think is it possible to read data from all the members in the RPG?

2 Answers   Cap Gemini,


What is the purpose of Panel Groups?

4 Answers  


Im traying to get out put of this below mention simple logic code.But im geting out of different.(im trying with my laptop trhough my company server. DCL &FIELD1 *CHAR 10 VALUE('TCS AS/400') DCL &FIELD2 *CHAR 10 CHGVAR(%SST(&FIELD2 1 10))(%SST(&FIELD1 10 1) Can you tell me the value of field2 after excuted of CHGVAR command.

2 Answers  


What is the Record Address file. How can we use it in RPG program?

4 Answers  


How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

0 Answers  


can we use cl programming to update or delete physical files

12 Answers  


WHAT IS MENT BY RECORD LEVEL IDENTIFIER ? WHAT IS THE PURPOSE OF THIS?

1 Answers  


Categories