EX -LINES {n} EDAPUT {File Type},{App/}{File Name},{Create Type},{Create Location}
n : Number of lines including EDAPUT Line
File Type : Type of File (e.g. MASTER, FOCEXEC, ACCESS, etc [B]See Below[/B])
App/ : Optionally Specify the APP directory
File Name : Name of the File without the extension
Create Type : Type of Create (CV=Create Variable, C=Create Fixed, A=Append to file)
Create Location : File Location (FILE=Write to Current Location, MEM=Write to Memory only (V5.2 or later))
Watch out for...
In V5.2 or later, if a file exists in the EDAPATH, it WILL be replaced, unless you use the MEM option.
IBI say that this is internal code and is therefore NOT Supported
Known File Types, there may be more...
Version 5.1.4 Version 7.1.6 & 7.6.4
FILETYPE Extension FILETYPE Extension
ACCESS acx ACCESS acx
ADR adr ACCESSU acx
AFM afm ADR adr
BMP bmp AFM afm
BST bst BMP bmp
DATA dat BST bst
DDS DDS DATA dat
EDASYNA acx DDS DDS
EDASYNM mas DTD dtd
EDASYNR fex EDASYNA acx
EPS eps EDASYNM mas
EXCEL xls EDASYNR fex
FMU fmu EPS eps
FOCCOMP fcm ETG etg
FOCDEF def ETL etl
FOCEXEC fex EXCEL xls
FOCFTMAP fmp FMU fmu
FOCPSB psb FOCCOMP fcm
FOCSQL acx FOCCOMPW fcm
FOCSTYLE sty FOCDEF def
FOCTEMP ftm FOCEXEC fex
FOCUS foc FOCEXECU fex
GIF gif FOCFTMAP fmp
HLI hli FOCPSB psb
HOLDACC acx FOCSQL acx
HOLDMAST mas GIF gif
HTML htm FOCSTYLE sty
MASTER mas FOCSTYLU sty
MASTERU mas FOCTEMP ftm
MNTPAINT mpt FOCUS foc
OMI omi GIFU gif
PDF pdf HLI hli
PFA pfa HOLDACC acx
PFB pfb HOLDMAST mas
PS ps HTML htm
TABS txt HTMLU htm
TDL tdl JPG jpg
TTEDIT tte LSN lsn
TXT txt MAINTAIN mnt
WINFORMS wfm MAINTAIU mnt
XHT xht MASTER mas
XML xml MASTERU mas
XSL xsl MNTPAINT mpt
OMI omi
PDF pdf
PFA pfa
PFB pfb
PS ps
SVG svg
TABS txt
TDL tdl
TRF trf
TTEDIT tte
TXT txt
WINFORMS wfm
WINFORMU wfm
WSDL wsd
XHT xht
XML xml
XSD xsd
XSL xsl
Have fun EDAPUTtingThis message has been edited. Last edited by: Waz,
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
May 02, 2008, 08:42 AM
jgelona
Just what is the purpose of EDAPUT?
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
May 02, 2008, 08:56 AM
Waz
I've added this because I have seen EDAPUT being mentioned in other posts.
What it does, is that it allows you to write out a file of a specified type. The most common example is creating a Master inside a FOCEXEC and then use it. Although it is not limited to just Masters.
The other way is to FILEDEF a file, and -WRITE the contents out. This is, I think, a much neater way to do it.
I have added this post in so a more complete syntax is available, as there is no documentation, even though you find the command in the focexes supplied with WebFOCUS.
Hope this answers your question.
Waz...
Prod:
WebFOCUS 7.6.10/8.1.04
Upgrade:
WebFOCUS 8.2.07
OS:
Linux
Outputs:
HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!
May 02, 2008, 11:52 AM
j.gross
I used this facility while writing QA test-suite code at IBI.
Note that "EX -LINES ...", like any Focus command, is interpreted only when it is encountered in FOCSTACK, and thus the {n} lines are counted as they appear in FOCSTACK. Dialog Manager command or comment lines interspersed among them in the original fex are not part of the count.