I tryed...  seems that SQL does not like DDM Files.
___________________________________________________________________________
                       Información Adicional de Mensaje

ID de mensaje  . . . . :   SQL7011       Gravedad . . . . . . . :   30
Tipo de mensaje  . . . :   Diagnóstico

Mensaje . . . . : ADDRES_REM en B no es una tabla, vista o archivo físico.
Causa . . . . . : La sentencia SQL *N no puede realizarse en un archivo que
no sea una tabla, vista, archivo lógico de formato único o archivo físico.
Recuperación . : Efectúe una de las acciones siguientes:
-- Utilice un mandato de lenguaje de control (CL) para realizar la
función.
-- Seleccione la tabla, vista, archivo lógico o archivo físico correctos.
______________________________________________________________________________
Paul Morgan wrote:


Raul,

If you have communication between the two systems you could create a DDM
file on one system that pointed to the file on the other system.  Put the
DDM file into a different library or just name the DDM file with a different
name than the file you're comparing against.  This DDM file could then be
used in a SQL statement along with the physical file you're comparing
against.  Not very great for performance but it'll get the job done.

Instead of using the DDM file directly you could use the DDM file as a
method to copy over the file for comparison (instead of using FTP,
save/restore or SNADS).  Create the DDM file.  Use CPYF CRTFILE(*YES)
FROMRCD(1) to copy over the file.  Run your SQL comparison against the
copied file.

Paul







As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.