"The USAGE COMPUTATIONAL clause specifies that a radix and format specified by
the implementor is used to
represent a numeric item in the storage of the computer. Each implementor
specifies the precise effect of the
USAGE COMPUTATIONAL clause upon the alignment and representation of the data
item in the storage of the
computer, including the representation of any algebraic sign, and upon the
range of values that the data item may hold." This implies that this may vary
between COBOL implementors.
My question is what is the the equivalent of PIC S9(4) COMP IN PL/1 ? That
is how do you declare this in Pl/1?
Johanes Gislason
Please send your respond to jg...@rb.is
thanks in advance
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
COBOL PIC S9(4) is guarantied equivalent to PL/I FIXED BIN(15,0) only if
compiled with the TRUNC(BIN) option. With TRUNC(STD) the value is
truncated to the number of digits (decimal) in the PIC clause. PL/I does
not perform such truncation.
Gunnar.
Robert M. Pritchett, President - RMP Consulting Partners LLC
http://rmpcp.com - rm...@pobox.com - Dallas, TX - Member ICCA
"Quality means doing it right the first time!"
See http://www.headhunter.net/jobstv/0j/j04651mjxt8trch80j.htm?ShowJob
Contractors: tired of hearing "W-2 only"? Join us and let us help you get
that same contract on a 1099 as a self-employed independent contractor!
Peter Flass wrote in message <37135D...@Leginfo.LBDC.State.NY.US>...
>My question is what is the the equivalent of PIC S9(4) COMP IN PL/1 ? That
>is how do you declare this in Pl/1?
PIC S9(1) to PIC S9(4) COMP: BIN FIXED(15)
PIC S9(5) COMP and above: BIN FIXED(31)
PIC S9(n) COMP-3: DEC FIXED(n)
(on any IBM-Mainframes)
CUL8R!
Ing. Michael Fitz
A-2410 Hainburg; Carnuntumstr. 21
<st...@lords.com> <mf...@aon.at>
=== PGP-Key on request ===
This is not 100% correct
In COBOL (At least on IBM MF):
PIC S9(10) COMP through PIC S9(18) COMP variables are held on 64 bits (=8
bytes).
I do not know the quivalent of this in PL/I
Fitz Michael wrote in message <3713cb19...@news.aon.at>...
>In COBOL (At least on IBM MF):
>
>PIC S9(10) COMP through PIC S9(18) COMP variables are held on 64 bits (=8
>bytes).
>
>I do not know the quivalent of this in PL/I
You are right. And there is no standard PLI-equivalent.
This feature should be available on OS/390 when the VA PL/I compiler is
released on OS/390 in 9/1999, but not for OS PL/I or PL/I for MVS.
Fitz Michael wrote in message <3717a504...@news.aon.at>...