BookmarkSubscribeRSS Feed
ThomasH
Calcite | Level 5
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
1 REPLY 1
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
You may find the SAS support http://support.sas.com/ website resources useful for this topic. Here is a link to the most current SAS DOC on SAS/Access and DB2, as a general guide - your SAS version may have additional considerations:

SAS/ACCESS Interface to DB2 under z/OS
http://support.sas.com/documentation/cdl/en/acreldb/61890/HTML/default/a002299542.htm


I expect that you will find additional supplemental technical reference material at the website, as well, either using the SEARCH facility or using a Google search against the SAS.COM site.

Scott Barry
SBBWorks, Inc.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 634 views
  • 0 likes
  • 2 in conversation