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.
When I run this statement from the WF client, I'm getting extra space in the output file. This seems to happen when I use a define or compute. If the field is defined as an alphanumeric, the length in the output file becomes 3 times the length that it should be. In the example below, the 'TEXT' field defined as A10 is taking 30 characters in the output file. The computed integer 'NUM' is taking up 4 characters in the output file (which is correct). If you change the PCHOLD to HOLD, then it all works fine however, I need the file to go back to the client.
TABLE FILE CAR PRINT CAR COMPUTE TEXT/A10 = '1234567890'; COMPUTE NUM/I4 = 1234; ON TABLE PCHOLD FORMAT ALPHA END
Also, if I run the code directly on the reporting server, nothing goes wrong. The issue only occurs if I run the code through the client portal. I've also tried running the coded deferred and downloading the output from the deferred status screen but I'm still getting the extra space.
Product Release: 8.1 Service Pack: 0.5 Build Version: branch8105m Build/GEN Number: 172 Build/GEN Date: July 29, 2016 4:12:58 PM EDT Application Server: IBM WebSphere Application Server/8.5This message has been edited. Last edited by: FP Mod Chuck,
Have you tried this instead if the COMPUTE seems to be a problem for you ?
DEFINE FILE CAR
TEXT/A10 = '1234567890';
NUM/I4 = 1234;
END
TABLE FILE CAR
PRINT CAR
TEXT
NUM
ON TABLE HOLD AS baseapp/OUTPUTFILE FORMAT ALPHA
END
-RUN
Normally, you have that issue when you use a variable length field (A10V)
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
As indicated in my original post, this issue only occurs when you are using PCHOLD from the client, therefore, your sample code would work fine for me because it's a HOLD.