Lpgast
0 pts. | Oct 1 2004 10:28AM GMT
Yeah, that would work if I was able to run a program or stored proc before I generate my reports. But, I am using webfocus to do the reporting, which unfortunately I am unfamiliar with. The vendor that sold/installed/maintains the product for us is too stupid to mention. All of sudden they aren’t AS/400 experts and don’t know how to configure the product to be able to execute programs and/or stored procedures. Which is why I wanted to use a view so there isn’t any pre-reporting operations that would have to be run.
TomLiotta
7525 pts. | Oct 28 2009 1:15AM GMT
Note that every view is a view over a member — it’s just that it’s over the *FIRST member where *FIRST will be the member that comes first in a creation-date ordered list.
Do you need a specific member? or do you need your view to be over one member that will be chosen at run-time? If you’re lucky and it really is a “specific” member, You might be able to copy/delete/rename members in the sequence that causes your chosen member to get moved to the top of the list.
If you’re lucky.
Tom
Droutt
50 pts. | Oct 28 2009 2:31PM GMT
Using sql, create a view over the table and the member you need - assign it a unique name.
Once that has been created and stored on your system, you can use the view name in your sql code like it was a file name.
TomLiotta
7525 pts. | Oct 28 2009 10:04PM GMT
…create a view over the table and the member you need…
How would you do that? I haven’t dug into partitioning yet. Perhaps that provides a way.
Tom






