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     [SHARING] FTP a TXT file from a Reportcaster job

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SHARING] FTP a TXT file from a Reportcaster job
 Login/Join
 
Expert
posted
I have searched FP (for: reportcaster ftp txt) and did not find a solution to my dilemma. That dilemma is that I need to create and FTP a test file (ON TABLE HOLD FORMAT ALPHA AS MYFILE.TXT) to a Unix destination.

I am able to do this for a HTM file (ON TABLE PCHOLD FORMAT HTML) quite nicely. I can create the desired txt file in an app folder and, separately, ftp it from there using a DOS batch or Unix Script. But, I want to do it in a single fex / ReportCaster job.

I am looking forward to hearing your replies. Big Grin

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




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Cool I got it... Will explain later...
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
Try using the below in your table request.

-IF &DELIVER NE 1 THEN GOTO PASSTHRU;
ON TABLE HOLD AS aa FORMAT &HOLDFORMAT
END
!cp -p &AA_EXT &DEST_FILE
-EXIT
-PASSTHRU

&AA_EXT -- should be like aa.ftm/aa.csv/aa.tab depending on the type of HOLD format that you choose
&DEST_FILE -- should have the file location and the file name.

THe above code works when your destination location has a mounting point to your reporting server.


WebFOCUS - ver8201
[ReportingServers: Windows 64bit;
Client: tomcat and IIS on windows 2012
AppStudio

 
Posts: 104 | Location: Indianapolis | Registered: November 08, 2007Report This Post
Expert
posted Hide Post
Thanks Rao,
But, that has too many assumptions and I need to keep this within ReportCaster.

The final (simple as 1,2,3) answer:
1) The Code:
   TABLE FILE [this]
   PRINT [fields]
   END
2) Edit Task:
    A) "Save Report As: [filename.txt]"
    B) Report Format: ALPHA - Fixed Format Text File (*.ftm, *.txt)
3) Distribution:
    C) Use the FTP to a "Single File" to [filaename.txt]
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report 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     [SHARING] FTP a TXT file from a Reportcaster job

Copyright © 1996-2020 Information Builders