how can you copy records present in a flat physical file to
a database file(physical file).please explain in rpg400 with
a simple example



how can you copy records present in a flat physical file to a database file(physical file).please e..

Answer / guest

Declare a DS with same data types in PGM and move the
record into DS and write the structured file using the DS

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More DB2 Interview Questions

How do I start db2 in windows?

0 Answers  


Mention the different locking levels that are available in db2.

0 Answers  


Hi, i would like to start a new carrier in DB2 DBA.Which and what all step should i have to take..?

0 Answers  


How do you retrieve the data from a nullable column?

2 Answers  


What is an inner join, and an outer join ?

1 Answers   CTA,






I am getting a error multiple row fetched while executing a Cobol-DB2 program.How can I solve it without using a cursor.

8 Answers  


Name the lockable units in DB2?

0 Answers  


Define predicate?

0 Answers  


How will fetch last 5 rows from table in db2

6 Answers  


is there any restrictions for unions ?

4 Answers   Patni,


Name some fields from SQLCA.

2 Answers  


If there is no row in Emp table with Ename as Raghava and you run the below queries in SPUFI. 1.select Ename from EMP wher Ename = 'raghava' 2.Select count(*) from EMP where Ename = 'raghava' What is SQLCODE shown up in SPUFI

4 Answers   ADP,


Categories