Focal Point
[CLOSED] PCHOLD with alpha is adding extra spaces

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7147022296

December 24, 2019, 09:50 AM
Adamb
[CLOSED] PCHOLD with alpha is adding extra spaces
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
December 24, 2019, 09:58 AM
Tony A
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 
December 24, 2019, 11:38 AM
MartinY
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
December 24, 2019, 12:33 PM
Adamb
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
December 24, 2019, 02:03 PM
FP Mod Chuck
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
December 25, 2019, 06:41 AM
Danny-SRL
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

December 31, 2019, 08:08 AM
Adamb
Daniel, can you elaborate?


WebFOCUS 8.105M, Solaris
December 31, 2019, 09:45 AM
FP Mod Chuck
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
December 31, 2019, 03:19 PM
Danny-SRL
Exactly


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