Hi all,
I have a question regarding usage of proc db2ext when using it via a host connection.
What I would like to do: Use proc db2ext to extract DB/2 tables on a z/OS system and copy it as SAS datasets via a connection to a UNIX environment.
I can imagine it via
a) open a host connection and use db2ext on the host to create datasets in a library on the client. How would that work?
[...]
signon host user=&user password=&pass;
rsubmit;
libname host db...
libname client...
* how to specify the library on the calling client side inside the host?
proc db2ext in=host out=client...
run;
endrsubmit;
b) open a host connection, create the SAS datasets there and then use proc copy from client.
rsubmit;
libname host db...
libname hostsas
proc db2ext in=host out=hostsas...
run;
endrsubmit;
libname hostsas server=host;
proc copy in=hostsas out=clientlib;
run;
What would be the best way to do it?
Thanks,
Thomas