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     Deleting a file through FOCUS code

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Deleting a file through FOCUS code
 Login/Join
 
Gold member
posted
We have a text file present in the web focus environment which needs to be deleted through WebFOCUS code. What is the command and syntax for the same?
 
Posts: 78 | Registered: December 11, 2005Report This Post
Expert
posted Hide Post
CD,

If you're on a DOS based machine then you could use -
-DOS ERASE c:\ibi\apps\baseapp\tobedeleted.txt

There are, obviously, different flavours of the same command for the different O/Ss.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
The following syntax is also available:

APP DELETEF appname filename filetype

This deletes a single component from appname


WebFOCUS 8202 Win 2012
Test - WebFOCUS 8203 on Win 2012
 
Posts: 173 | Registered: November 16, 2005Report This Post
<lfrerker>
posted
Here's the syntax for UNIX/LINUX

UNIX cd /opt/ibi/webfocus/ibi/apps/hr_email
UNIX mv wfanalyt.ftm wfanalyt.dis
UNIX rm wfhold4.ftm

Replace the directory string with you directory structure.
 
Report This Post
Guru
posted Hide Post
I'd stick with the APP DELETEF because then you generally don't need to know OS specific commands. If you migrate from windows to UNIX your DELETEF commands will still work. Check out the following url for meore options with APP commands...

http://documentation.informationbuilders.com/masterinde...admin_510/10da02.htm


ttfn, kp


Access to most releases from R52x, on multiple platforms.
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Report This Post
Expert
posted Hide Post
The APP commands are very handy, but I find the documentation too brief.

For example, to delete files in an APP folder, run this command:

APP DELETEF[ILE] app1 fn1 ft1
- Deletes the file within the application app1 with filename=fn1 and filetype=ft1.

The valid filetypes appear to not be documented anywhere. Through trial and error, I have determined two valid filetypes (case sensitive, and not the file suffix): HTML and MASTER.

Is this documented anywhere, and if not, what are the valid filetypes? I cannot determine the filetype for .ftm files


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
Hope this comes out readable
Filetype
File Extension

MASTER
.mas

FOCSQL
.acx

OMI
.omi

HLI
.hli

FOCEXEC
.fex

EDAPROF
.prf

MNTPAINT
.mpt

EDANLS
.nls

ERRORS
.err

MAINTAIN
.mnt

WINFORMS
.wfm

FOCCOMP
.fcm

FOCSTYLE
.sty

FOCFTMAP
.fmp

AFM
.afm

HTML
.htm

TXT
.txt

PS
.ps

GIF
.gif

TDL
.tdl

BMP
.bmp

EXCEL
.xls

ADR
.adr

BST
.bst

EPS
.eps

PDF
.pdf

XHT
.xht

XML
.xml

XSL
.xsl

TABS
.txt

SMARTLIB
.knb

FOCUS
.foc

IBICPG
.sl

TTEDIT
.tte

FOCTEMP
.ftm

DATA
.dat

TRF
.trf

FMU
.fmu

DDS
.DDS

FOCDEF
.def

PFA
.pfa

FOCPSB
.psb

PFB
.pfb

CONTROL
.ctl

LSN
.lsn

DTD
.dtd

ETL
.etl

EDAPRFU
.prf

ETG
.etg

XSD
.xsd

WSDL
.wsd

JPG
.jpg

SVG
.svg

PNG
.png

EDAPSB
.psb

MHT
.mht

SQL
.sql

JS
.js

Cascading Stylesheet
.css

Microsoft Access database
.mdb


dwf
 
Posts: 135 | Location: Portland, OR | Registered: March 23, 2005Report This Post
Expert
posted Hide Post
dwf, thank you! I will update my local copy of the documentation with this info. Where'd you find this?

Cheers.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
Francis,

I was looking for exactly the same info earlier and found it on IBIs Tech Support web site by doing a search on 'APP commands' and then drilling into a few things. Here's the direct link to the manual:

http://documentation.informationbuilders.com/masterinde...AsOpen_SrvAdm761.pdf

This is an iWay manual, NOT WebFOCUS. It can be found in the 'Server Administration for Unix, Windows, OpenVMS, etc' manual. Page 5-39.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Expert
posted Hide Post
Mickey, thank you! A buried treasure.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 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     Deleting a file through FOCUS code

Copyright © 1996-2020 Information Builders