Right now I'm just messing around in SPUFI. Eventually I am going to either execute this from a job or from a COBOL program.
I'm dealing with a very complex query that is touching on multiple tables and the same table in multiple ways to get the data that I want.
So I have, say 6 SELECT statements. I would like to split these up so that I can reference them in the outer most SELECT as Flat files. Can I do that?
SELECT *
FROM (INCLUDE??) Flat.File.A
LEFT JOIN (INCLUDE??) Flat.File.B
WHERE.....
Thanks in advance for any help!
DK
Reference a flat file in a DB2 Query
-
- Posts: 34
- Joined: Thu Oct 02, 2014 7:51 pm
- Skillset: COBOL
JCL - Referer: Google
-
- Similar Topics
- Replies
- Views
- Last post
-
- 0
- 2568
-
by JIMDOOEY
View the latest post
Tue Mar 01, 2022 8:48 am
-
- 7
- 11570
-
by AusZosGuy
View the latest post
Fri Sep 10, 2021 6:40 pm
-
- 1
- 2491
-
by enrico-sorichetti
View the latest post
Fri Apr 02, 2021 6:56 pm
-
-
EZIOE004 Logical I/O error on file occurred reading VB file
by savitha_y » Mon Feb 15, 2021 7:54 pm » in CA-Easytrieve - 3
- 4956
-
by savitha_y
View the latest post
Wed Feb 17, 2021 5:02 am
-
-
-
File Handling 3 input files and 1 output file by using EZT
by pavan426 » Thu Sep 09, 2021 12:17 am » in CA-Easytrieve - 0
- 4415
-
by pavan426
View the latest post
Thu Sep 09, 2021 12:17 am
-