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.
I am working on webfocus 7.6.11 version. I am new to webfocus .
Probelm description:
I am reading one xml file using FILEDEF and save in to another XML . I am able to save but output file size increased , because of lot of spacess are stored in output file . if input file size is 90 KB , the output file size 2,633 KB. Please see below my code
-SET &ECHO =ALL; -SET &LOGDIR = E:\; -SET &FILE == 'WORKFILE.XML'; -SET &WORKDIR =&LOGDIR; -SET &FILENAME=&FILE; -SET &FDFILE=&WORKDIR | &FILE; -SET &OUTRES =&WORKDIR | 'YYRESULT.XML; -SET &OUTRES='ON TABLE SAVE FILENAME ' | &LOGDIR | 'YYRESULT.XML'; FILEDEF GPRS DISK &FDFILE TABLE FILE GPRS PRINT FIELD1 &OUTRES END -RUN Please help me on this problem.This message has been edited. Last edited by: Kerry,
Assuming that your master file GPRS has a single field FIELD1, that is used to read each line of the XMLS file, then the output size will be No of lines in * FIELD1 usage size.
There are some ways to write out a trimmed line.
My current favourite one is PUTDDREC:
Assuming FIELD1 Usage is A100.
SET &ECHO =ALL;
-SET &LOGDIR = E:\;
-SET &FILE == 'WORKFILE.XML';
-SET &WORKDIR =&LOGDIR;
-SET &FILENAME=&FILE;
-SET &FDFILE=&WORKDIR | &FILE;
-SET &OUTRES =&WORKDIR | 'YYRESULT.XML;
-SET &OUTRES='ON TABLE SAVE FILENAME ' | &LOGDIR | 'YYRESULT.XML';
FILEDEF GPRS DISK &FDFILE
FILEDEF XMLOUT DISK &LOGDIR..YYRESULT.XML
TABLE FILE GPRS
PRINT COMPUTE RETCODE/I3 = PUTDDREC('XMLOUT',6,FIELD1,ARGLEN(100,FIELD1,'I3),RETCODE) ;
ON TABLE HOLD AS OUTRES
END
-RUN
The function PUTDDREC writes a line to a pre-allocated file (FILEDEF), and the ARGLEN specifies the number of characters to output.