
Fetch modules and file I/O
Hello everyone
I am trying to create a general fetch-module that is supposed to update
up to 8 DB2-tabel and VSAM-files, and sends PUT SKIPs for each call. The
number of tables/files to update will change over time, so I need a
fetch module.
+-------------+ +--------------+ +-----------+
| MAIN-MODULE |--->| FETCH-MODULE |<-->| VSAM-FILE |
+-------------+ +--------------+ +-----------+
My problem:
is that I can't seem to get fetch modules to use streams nor files. The
DB2 I/O part shouldn't bee any problem (so I've heard).
How can I use streams (put skip) in my fetch modules?
- I Found out that if I use a put skip statement i my main-module it
doesn't crash.
How can I use VSAM-files in my fetch module?
- I tried declaring, opening in the main-module and read-/writing in the
fetch-module. Result:Protection exception.
- I tried declaring, opening and read-/writing in the fetch-module.
Result:Protection exception.
If I can't use VSAM-files, how can it be that DB2 is usable when there
is VSAM beneath DB2?
--
Thank you
Magnus Oddsson