Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] PCHOLD with alpha is adding extra spaces
Go
New
Search
Notify
Tools
Reply
  
[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, 2019Reply With QuoteReport 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.06 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5637 | Location: United Kingdom | Registered: April 08, 2004Reply With QuoteReport 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: 2282 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport 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, 2019Reply With QuoteReport 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: 1752 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport 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: 1941 | Location: Tel Aviv, Israel | Registered: March 23, 2006Reply With QuoteReport This Post
Member
posted Hide Post
Daniel, can you elaborate?


WebFOCUS 8.105M, Solaris
 
Posts: 3 | Registered: December 23, 2019Reply With QuoteReport 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: 1752 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Exactly


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

 
Posts: 1941 | Location: Tel Aviv, Israel | Registered: March 23, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

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-2018 Information Builders, leaders in enterprise business intelligence.