• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1134
  • Last Modified:

DFTRDBCOL Parameter with more than one library?

Since I am accessing data in a remote system, I am using the CONNECT statement and then compiling with DFTRDBCOL ="library name". However, my SQL statements include files in more that one library. What should I do, in order to access files in several libraries in the remote system?
0
spr-electrolux
Asked:
spr-electrolux
  • 3
1 Solution
 
tliottaCommented:
AFAIK, only one library (collection) can be the "default" library (collection). If you access outside of the named default, you need to qualify the names with the appropriate library (collection).

Is the remote system expected and intended to be another AS/400? If so, then you probably should use OPTION(*SYS) and consider controlling the library list, perhaps via a SQL CALL prior to data access or some similar method of remote invocation within the same unit of work.

Tom
0
 
spr-electroluxAuthor Commented:
Ok Tom, thanks again for your reply.

I tried the OPTION(*SYS), and then qualified my files in the Select statement, and the program creates the package and all that. However, the file is not being found when I run my program, like it is ignoring the qualification. Can you elavorate a little on the "controlling the library list, perhaps via a SQL CALL...." I am not sure I am smart enough to do this....
0
 
spr-electroluxAuthor Commented:
Hey Guys...

After a while I found that the library can be added just by calling an exeternal command like QCMDEXC.

Thanks for your attention
0
 
spr-electroluxAuthor Commented:
Somewhat incomplete instructions
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now