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

Are view updateable?

829


File not opened because library is *PROD and debug is UPDPROD(*NO). ? what may be the reason? how to solve it..?

2699


What is a db2 package?

814


What is the difference between using bind () and rebind () methods of naming class?

1105


What is rct?

1006


What is catalog database in db2?

881


What happens in bind step in a db2 program?

750


How can you do the explain of a dynamic sql statement?

852


Which component is responsible for processing sql statements and selecting access paths?

911


Name the lockable units in DB2?

920


what is db2 restart?

1925


How is deadlock resolved?

864


How do I delete a table in database?

805


How would you find out the total number of rows in a db2 table?

807


Explain in brief how does db2 determine what lock-size to use?

808