Focal Point
[SOLVED] Convert P5 to A5

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

December 17, 2018, 03:56 PM
DWaybright
[SOLVED] Convert P5 to A5
Is there a way to convert a P5 field to an A5V? I want to define a larger variable alpha field with the P5 concatenated with a A50V field.

I tried PCKOUT, but I get weird characters instead of the number.

Thanks.

This message has been edited. Last edited by: DWaybright,


WebFOCUS 8.2.03
AppStudio, InfoAssist
Windows, All Outputs
December 17, 2018, 04:01 PM
MartinY
Have you tried FPRINT ?

As from a DEFINE
New_Fld /A10V = FPRINT(Old_Fld, 'P5', 'A10V');

Remember that you will need more space in the alpha field than in the pack field.


WF versions : Prod 8.2.0.1M gen 240, Dev 8.2.04 gen 48, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
December 17, 2018, 04:02 PM
BabakNYC
https://webfocusinfocenter.inf...rver/source/ptoa.htm


WebFOCUS 8206, Unix, Windows
December 17, 2018, 04:12 PM
DWaybright
The PTOA gave me what I needed.
BabakNYC -- thanks for the link. I have an old Keysheet book for WebFOCUS 7 and couldn't find what I was looking for in that. I'll look on the infocenter format conversion page first from now on!


WebFOCUS 8.2.03
AppStudio, InfoAssist
Windows, All Outputs