Kbase P87589: How to output a RESULTS Query information to a file?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  09/07/2004 |
|
Status: Unverified
GOAL:
How to output a RESULTS Query information to a file?
FACT(s) (Environment):
Progress 8.x
FACT(s) (Environment):
Progress 9.x
FIX:
To output a RESULTS report query information to an external file involves the modification of the source code of the aderes/s-info.p procedure. Such a modification, like all modifications to the Progress distributed or open source code, is not supported by Progress.
These are the steps required to perform the above task assuming that the Progress working directory is C:\WRK:
1. Create the following two subdirectories for the working directory:
C:\WRK\adecomm
C:\WRK\aderes
2. Obtain the following source code files from POSSENET :
C:\WRK\adecomm
adefext.i
adestds.i
okform.i
okrun.i
C:\WRK\aderes
j-define.i
p-comma.i
reshlp.i
s-define.i
s-info.p
s-info.r
s-system.i.
3. Add the above two directories to the Progress PROPATH.
4. Modify the procedure C:\WRK\aderes\s-info.p as follows:
4.1. Insert the code:
SESSION:SUPPRESS-WARNINGS = TRUE.
before:
&GLOBAL-DEFINE WIN95-BTN
4.2 Add the code:
OUTPUT TO QueryInfoFile.txt.
PUT UNFORMATTED info.
OUTPUT CLOSE.
after:
ASSIGN
info:SCREEN-VALUE IN FRAME qbf-info = info
info:READ-ONLY IN FRAME qbf-info = TRUE.
5. Save and compile the modified C:\WRK\aderes\s-info.p.
6. Open a report and choose Option -> Query Information.
7. The file QueryInfoFile.txt will be generated with the same query information that appears in the query information dialog box.