Focal Point
[Closed] Creating a PL/1 readable file from WebFOCUS

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

December 01, 2010, 10:19 AM
MichaelBalle
[Closed] Creating a PL/1 readable file from WebFOCUS
I have to realize a interface between WebFOCUS and PL/1.
Is there any document describing PL/1 datatypes (e.g. DEC FIXED (15, 0) ) and the corresponding WebFOCUS data type for ACTUAL (the format the data are stored)?
(I found only the description for COBOL but not for PL/1)


Thank you very much in advance.

We work in the OS/390 environment of our customer.

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


WebFOCUS 7.6, 7.7
Windows, All Output formats
December 01, 2010, 03:14 PM
Francis Mariani
I imagine you've already seen this:


The PL/1 notes do not help?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
December 02, 2010, 02:04 AM
MichaelBalle
Hi Francis,

I can't see the picture (gif or what it is).

Can you send me the link as text please?

I have seen the format P for DEC FLOAT but no example for DEC FIXED ( and I use P8 for DEC FIXED(15, 0), but it doesn't work - the number is already human readable and not packed.

Thank you in advance


Michael Balle


WebFOCUS 7.6, 7.7
Windows, All Output formats
December 02, 2010, 10:27 AM
MichaelBalle
By using the function PCKOUT you can assign a packed field to an alphanumeric field remaining the packed structure.
(see Help -> Content -> Index: PCKOUT)


WebFOCUS 7.6, 7.7
Windows, All Output formats
December 02, 2010, 10:48 AM
Francis Mariani
Reference: COBOL Picture to USAGE Format Conversion

The following table shows the USAGE and ACTUAL formats for COBOL, FORTRAN, PL1, and Assembler field descriptions.

COBOL USAGE            BYTES OF COBOL      INTERNAL    ACTUAL        USAGE
FORMAT                 PICTURE             STORAGE     FORMAT        FORMAT
-----------            --------------      --------    ------        ------
DISPLAY                X(4)                4           A4            A4
DISPLAY                S99                 2           Z2            P3
DISPLAY                9(5)V9              6           Z6.1          P8.1
DISPLAY                99                  2           A2            A2
COMP                   S9                  4           I2            I1
COMP                   S9(4)               4           I2            I4
COMP*                  S9(5)               4           I4            I5
COMP                   S9(9)               4           I4            I9
COMP-1**               —                   4           F4            F6
COMP-2***              —                   8           D8            D15
COMP-3                 9                   8           P1            P1
COMP-3                 S9V99               8           P2            P5.2
COMP-3                 9(4)V9(3)           8           P4            P8.3
FIXED                  B or XL1                       8I4            I7
BINARY(7)
(COMP-4)

* Equivalent to INTEGER in FORTRAN, FIXED BINARY(31) in PL/1, and F in Assembler.
** Equivalent to REAL in FORTRAN, FLOAT(6) in PL/1, and E in Assembler.
*** Equivalent to DOUBLE PRECISION or REAL*8 in FORTRAN, FLOAT(16) in PL/1, and D in Assembler



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server