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     [CLOSED] PCHOLD with alpha is adding extra spaces

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] PCHOLD with alpha is adding extra spaces
 Login/Join
 
Member
posted
Hi,

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.5

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.105M, Solaris
 
Posts: 3 | Registered: December 23, 2019Report This Post
Expert
posted Hide Post
Works fine in 8.2.06

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
Virtuoso
posted Hide Post
The file looks good with 8201 and also with 7705

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, 2013Report This Post
Member
posted Hide Post
Hi Martin,

Define or compute, same issue.

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.

I am not using variable length fields.


WebFOCUS 8.105M, Solaris
 
Posts: 3 | Registered: December 23, 2019Report This Post
Virtuoso
posted Hide Post
AdamB

I get the same results running it from the client on both 8.1.05 and 8.2.06.

I see the car model with spaces to fill out the entire length of that field and then the two computes with no spaces in between.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Virtuoso
posted Hide Post
AdamB,
Could it be that you are creating Unicode characters?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Member
posted Hide Post
Daniel, can you elaborate?


WebFOCUS 8.105M, Solaris
 
Posts: 3 | Registered: December 23, 2019Report This Post
Virtuoso
posted Hide Post
Adam

I am pretty sure he meant your NLS settings on both the WebFOCUS client and reporting server.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Virtuoso
posted Hide Post
Exactly


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report 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     [CLOSED] PCHOLD with alpha is adding extra spaces

Copyright © 1996-2020 Information Builders