Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

can UNION ALL type construct be built into a Logical File?

Posted on 2008-10-01
2
Medium Priority
?
353 Views
Last Modified: 2008-10-02
can a UNION ALL type construct be built into a Logical File?
How?
0
Comment
Question by:volking
2 Comments
 
LVL 46

Expert Comment

by:Kent Olsen
ID: 22618482
Hi Fred,

That should be part of the CREATE VIEW declaration

CREATE VIEW myview
AS
SELECT * FROM sometableorview1 WHERE condition1
UNION ALL
SELECT * FROM sometableorview2 WHERE condition2;


Kent
0
 
LVL 27

Accepted Solution

by:
tliotta earned 2000 total points
ID: 22620428
volking:

Your questions that are specific to LFs (rather than SQL VIEWs) would be better asked in one of the AS/400 forums.

If I understand your question, what you're looking for would be called a multiple format logical. You would list the logical definitions of the various Physical Files one after the other, rather than describing only one.

There are details, of course, but that's the basics.

Tom
0

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Loops Section Overview

879 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question