27.12.2012 Views

International Technical Support Organization Database Systems ...

International Technical Support Organization Database Systems ...

International Technical Support Organization Database Systems ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.5.3 Binding Applications<br />

Using the DBS Utility on a Non-SQL/DS Application Server<br />

Before a user can use the DBS utility on a non-SQL/DS application server, you<br />

must first preprocess the DBS utility package on a non-SQL/DS application<br />

server, and then create the table SQLDBS.DBSOPTIONS on the non-SQL/DS<br />

application server. You must obtain the necessary program bind and table<br />

creation privileges for your authorization-id on the target application server. Do<br />

the following from an SQL/DS application requester to preprocess the DBS<br />

utility:<br />

1. Run the SQLINIT EXEC to establish the non-SQL/DS application server as the<br />

default application server.<br />

2. Link to the database machine′s service disk:<br />

LINK machid 193 193 RR<br />

3. Enter the following to access the service disk:<br />

ACC 193 V<br />

4. To preprocess the DBS utility, enter the following:<br />

SQLPREP ASM PP (PREP=SQLDBA,ARIDSQL, BLOCK,ISOL(CS),<br />

NOPR,NOPU,CTOKEN(NO),ERROR) IN ARIDSQLP MACRO V)<br />

5. To create the table SQLDBA.DBSOPTIONS, enter the following DBS utility<br />

commands:<br />

SET ERRORMODE CONTINUE;<br />

CREATE TABLE SQLDBA.DBSOPTIONS (SQLOPTION VARCHAR(18) NOT<br />

NULL, VALUE VARCHAR(18) NOT NULL);<br />

CREATE UNIQUE INDEX SQLDBA.DBSINDEX ON SQLDBA.DBSOPTIONS<br />

(SQLOPTION,VALUE);<br />

INSERT INTO SQLDBA.DBSOPTIONS VALUES (′RELEASE′,′3.3.0′);<br />

COMMIT WORK;<br />

Using ISQL on a Non-SQL/DS Application Server<br />

Before a user can make an ISQL request against a non-SQL/DS application<br />

server, you must load the ISQL package on the non-SQL/DS application server.<br />

Note: The SQL/DS ISQL component cannot access AS/400 databases from<br />

SQL/DS; in this case use the DBS utility instead of ISQL.<br />

Before you can load ISQL on a non-SQL/DS application server, you must first<br />

preprocess the DBS utility on the non-SQL/DS application server. Then ensure<br />

that your authorization-id has the necessary program bind and table creation<br />

privileges on the non-SQL/DS application server. Do the following from an<br />

SQL/DS application requester to load ISQL:<br />

1. Run the SQLINIT EXEC to establish the non-SQL/DS application server as the<br />

default application server.<br />

2. Link to the database machine′s service disk:<br />

LINK machid 193 193 RR<br />

Chapter 3. DRDA Connectivity 59

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!