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] Creating a PL/1 readable file from WebFOCUS
Go
New
Search
Notify
Tools
Reply
  
[Closed] Creating a PL/1 readable file from WebFOCUS
 Login/Join
 
Gold member
posted
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
 
Posts: 90 | Location: Stuttgart | Registered: October 20, 2010Reply With QuoteReport This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteReport This Post
Gold member
posted Hide Post
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
 
Posts: 90 | Location: Stuttgart | Registered: October 20, 2010Reply With QuoteReport This Post
Gold member
posted Hide Post
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
 
Posts: 90 | Location: Stuttgart | Registered: October 20, 2010Reply With QuoteReport This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [Closed] Creating a PL/1 readable file from WebFOCUS

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.