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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about mirror activator disk mirroring?

562


How would the varchar column remarks defined?

641


Why cursor is used in db2?

577


What is a dbrm in db2?

580


What is an instance database?

603






On which levels locks can be applied?

665


What is the clustering index in the db2 database?

588


What is the difference between cursor stability and repeatable read isolation levels?

690


How connect db2 database to datastage?

767


How do you pull up a query which was previously saved in qmf?

678


Define db2 and its databases?

623


What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?

717


Why select is not preferred in embedded sql programs?

715


define clustering index.

622


What is db2 bind?

644