To save the file of any format via focexec in the local system.
book
Article ID: KB0070132
calendar_today
Updated On:
Description
- Suppose a PDF format file is getting generated via focexec in Webfocus and now for some reason you want to store it locally in the system(location of your desired preference) where Webfocus is installed.
- We need to use FILEDEF command to fulfill the desired output.
- We will use CAR master file to generate a PDF and we will save that pdf in the downloads section of the system where Webfocus is installed .
Environment
Windows and Linux
Resolution
CODE
**************************
FILEDEF MYREPORT DISK C:\Users\cambolik\Downloads\myreport.pdf
-* Above line indicates the syntax as : FILEDEF name_of_report DISK
-*your_location\name_of_report.pdf
TABLE FILE CAR
PRINT
CAR
MODEL
BY COUNTRY
ON TABLE HOLD AS MYREPORT FORMAT PDF
-* in the above line we have specified the name_of_report as MYREPORT
END
**************************
>> After executing the above fex , 'myreport.pdf' file will be saved in the Downloads section of the system where Webfocus is installed.
Issue/Introduction
This article covers the instructions to save the file of any format via focexec in the system where Webfocus is installed
Feedback
thumb_up
Yes
thumb_down
No