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.
In a define I would like to concatenate the text (FIELD1) with '")' at the end. My problem is that sometimes a row from the file ends with a blank, sometimes it doesn't (Can FOCUS recognize that in a text file ?). The rows can be of different length.
I need to preserve the last blank in the concatenation when it's there. I finally write the rows on a new file. It should look like this when it's done.
abcdefg ") hijklmn asd s sdasdasd") jdfjj sdasdas ") asdadadasda")
WF Wont recognise a trailing blank for A256 field because this assumes that all fields are padded out to length 256 with blanks.
If the file is variable length this master will not work. Try a delimited file and A256V type fields since it should recognise cf lf as the end of the record.
Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2 Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006
I had to specify variable length in my filedef for blank spaces at the end of my fields to be perserved. I could not get it to work with variable length records when computing/defining the fields so I set the LRECL to my largest record. In my program I actually build a flat file one row at a time appending to my file that I have filedef'd. Here is a snippet of my code -- hope it helps:
FILEDEF EMPSAV DISK /opt/ibi/webfocus/ibi/apps/allhlds/EMPSAV.FTM (LRECL 68 RECFM V
DEFINE FILE EMPHLD BLSPC1/A1 = ' '; BLSPC2/A2 = ' '; BLSPC4/A4 = ' '; BLSPC15/A15 = ' '; A_FILLER/A10 = ' '; B_FILLER/A9 = '000000000'; END TABLE FILE EMPHLD PRINT PLAN_NBR NOPRINT COMPUTE RECID/A61 = PLAN_NBR | BLSPC2 | EMP_SSN | '04' | '1' | EMP_STREET_LINE1 | BLSPC1 ; BY PLAN_NBR BY EMP_CODE BY EMP_SSN BY PAY_FREQ ON TABLE SET HOLDLIST PRINTONLY ON TABLE SAVE AS EMPSAV FORMAT ALPHA END