Author: don.leahy
Posted: Tue Sep 20, 2016 7:21 pm (GMT 5.5)
My first choice would be the DB2 LOAD utility. So would my second and third choices. Inserting data via DSNREXX calls is very inefficient and would be a poor choice for more than a handful of rows.
If you must use Rexx, another approach is to read your input file and format SQL INSERT statements that you can run in a subsequent step via DSNTEP2. Even this approach is not optimal; you can do the same thing with relatively little effort (and much more efficiently) using DFSORT to format the INSERT statements.
_________________
"Let's work the problem, people. Let's not make things worse by *guessing*".
http://donleahy.blogspot.com/
Posted: Tue Sep 20, 2016 7:21 pm (GMT 5.5)
My first choice would be the DB2 LOAD utility. So would my second and third choices. Inserting data via DSNREXX calls is very inefficient and would be a poor choice for more than a handful of rows.
If you must use Rexx, another approach is to read your input file and format SQL INSERT statements that you can run in a subsequent step via DSNTEP2. Even this approach is not optimal; you can do the same thing with relatively little effort (and much more efficiently) using DFSORT to format the INSERT statements.
_________________
"Let's work the problem, people. Let's not make things worse by *guessing*".
http://donleahy.blogspot.com/