I want insert the records from a ps file into a table using REXX without using any utilities.
I gave some 5 fields in my ps file and the field data type of the those fields will be same as what is present into the destination table where i want to load the file. How can I do this....?
and the number of fields in the ps file and the table may differ always. but both will always have same number of fields. like if ps file has 10 fields then table will also have 10 fields and if ps file has 50 table will have 50.
So I want to dynamically insert the records into the table....
Any help from you people will be very greatful.....
Joined: 10 May 2007 Posts: 2355 Location: Hampshire, UK
What language is that? You asked about Rexx and that is not Rexx.
As to a variable number of fields then you code your program to do that. but your program needs to know the format of any data that is passed to it. How you do that is up to you but you may want to read in not only the dataset but also the DCLGEN for the table that is to be updated.