Kbase P124312: How to compare two character files using 4GL?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/16/2008 |
|
Status: Unverified
GOAL:
How to compare two character files using 4GL?
GOAL:
How to use copy-lob and compare 2 character files using 4GL?
GOAL:
How to copy a file to a longchar variable?
FACT(s) (Environment):
OpenEdge 10.x
FIX:
Write the following program:
DEFINE VARIABLE myvar1 AS LONGCHAR.
DEFINE VARIABLE myvar2 AS LONGCHAR.
COPY-LOB FROM FILE "c:\teste.xml" TO myvar1.
COPY-LOB FROM FILE "c:\test.xml" TO myvar2.
IF COMPARE(myvar1,"=",myvar2,"RAW") THEN
MESSAGE "same files" VIEW-AS ALERT-BOX INFO BUTTONS OK.