Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] using filedef to write output to multiple locations

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] using filedef to write output to multiple locations
 Login/Join
 
Silver Member
posted
Hi,
I am using FILEDEF multiple times to write a report output to multiple locations. Is there a way i can send the output to multiple locations by running it once rather than running it each time for each loaction.
Here is how i am doing

-SET &FIL_NM = 'FLNM_' || '&YYMD' || '&TOD' ;

FILEDEF &FIL_NM.EVAL DISK /app/ibi/apps/folder1/&FIL_NM.EVAL...PDF

TABLE FILE CAR
PRINT CAR
COUNTRY
MODEL
BY CAR NOPRINT
ON TABLE HOLD AS &FIL_NM.EVAL FORMAT PDF
END

FILEDEF &FIL_NM.EVAL DISK /app/ibi/apps/folder2/&FIL_NM.EVAL...PDF

TABLE FILE CAR
PRINT CAR
COUNTRY
MODEL
BY CAR NOPRINT
ON TABLE HOLD AS &FIL_NM.EVAL FORMAT PDF
END

FILEDEF &FIL_NM.EVAL DISK /app/ibi/apps/folder3/&FIL_NM.EVAL...PDF

TABLE FILE CAR
PRINT CAR
COUNTRY
MODEL
BY CAR NOPRINT
ON TABLE HOLD AS &FIL_NM.EVAL FORMAT PDF
END
Thanks

This message has been edited. Last edited by: Kerry,


WF 7.7.05 on Linux
HTML, PDF, EXCEL
 
Posts: 39 | Registered: July 21, 2009Report This Post
Virtuoso
posted Hide Post
If you are copying to APP folders, there is an APP COPYF command that can be used. I haven't actually used it, but the syntax is probably something like this:

-SET &FIL_NM = 'FLNM_' || '&YYMD' || '&TOD' ; 

FILEDEF &FIL_NM.EVAL DISK /app/ibi/apps/folder1/&FIL_NM.EVAL...PDF

TABLE FILE CAR
PRINT CAR
COUNTRY
MODEL
BY CAR NOPRINT
ON TABLE HOLD AS &FIL_NM.EVAL FORMAT PDF
END
-RUN

APP COPYF folder1/&FIL_NM.EVAL folder2/&FIL_NM.EVAL
APP COPYF folder1/&FIL_NM.EVAL folder3/&FIL_NM.EVAL


Otherwise, you can call the OS COPY command, but will need to provide full pathing.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Expert
posted Hide Post
I agree with Dan.

Create the PDF, and copy.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
Dan's approach is the efficient way to go.

quote:
If you are copying to APP folders, there is an APP COPYF command that can be used.


It seems from your sample code as if you are indeed creating your files in APP folders but even if that was not the case, you can always define one on the fly by using APP MAP and then it should be available to any other APP command.

...
APP MAP tmp_folder /not_in_ibi_apps/tmp_folder
APP COPYF folder1/&FIL_NM tmp_folder/&FIL_NM



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Virtuoso
posted Hide Post
You can use the HOLD command after the TABLE. See the following:
-* File wf_dev01.fex
FILEDEF PDF1 DISK PDF1.PDF
FILEDEF PDF2 DISK PDF2.PDF
FILEDEF PDF3 DISK PDF3.PDF
TABLE FILE CAR
PRINT COUNTRY
ON TABLE HOLD AS PDF1 FORMAT PDF
END
HOLD AS PDF2 FORMAT PDF
HOLD AS PDF3 FORMAT PDF
-RUN
! DIR *.PDF


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Expert
posted Hide Post
Not sure if the subsequant hold will work as expected for all TABLE FILES.

You would need to test to be positive.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
It should.
Of course if you used TABLEF it wouldn't because the internal matrix is not generated.
Also, there was a time (many years ago) when a COMPUTE using LAST would not be re-initialised. But if I recall, this was fixed.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Expert
posted Hide Post
That was probably what I was remembering.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] using filedef to write output to multiple locations

Copyright © 1996-2020 Information Builders