Re: Fujitsu COBOL and NOTRUNC option
From: William M. Klein (wmklein_at_nospam.netcom.com)
Date: 08/25/04
- Next message: Stephen Gennard: "Re: Microfocus Printing in Columns"
- Previous message: Robert Wagner: "Re: cobol data format!!! urgent!!!"
- In reply to: Robert Wagner: "Re: Fujitsu COBOL and NOTRUNC option"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 24 Aug 2004 23:20:47 GMT
If you want a "portable" and STANDARD solution (from Fujitsu), contact the
vendor and ask them when they plan on providing support for the detection and
appropriate declaratives for handling the
EC-SIZE-TRUNCATION
exception condition.
See page 400 of the 2002 Standard for when this condition is raised
-- Bill Klein wmklein <at> ix.netcom.com "Robert Wagner" <robert@wagner.net.yourmammaharvests> wrote in message news:fk7li0l9ihk54655suvmohup8edrdijuqq@4ax.com... > On 23 Aug 2004 13:41:44 -0700, pottmi@yahoo.com (Michael Potter) > wrote: > > >I would like to gather programmer's experiences using the Fujitsu > >COBOL compiler's NOTRUNC compile option. In particular I would like > >sample code of unexpected behavior. > > The only difference I've seen is faster execution .. on the order of > 2%, more with OPTIMIZE. > > The Standard doesn't guarantee portability of BINARY across platforms, > so you shouldn't be writing them to files. At issue is temporary > variables in memory. Hypothetically, a different compiler or options > (TRUNC, OPTIMIZE, MLBOFF) could produce different results. IMO, code > that depends on compiler truncation to produce correct results is > poorly written and likely to contain other fuzzy thinking. > > It would be nice if there were a compiler option similar to bounds > checking to diagnose truncation. Unfortunately, there isn't. >
- Next message: Stephen Gennard: "Re: Microfocus Printing in Columns"
- Previous message: Robert Wagner: "Re: cobol data format!!! urgent!!!"
- In reply to: Robert Wagner: "Re: Fujitsu COBOL and NOTRUNC option"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|