Re: Initialize
- From: "Chuck Stevens" <charles.stevens@xxxxxxxxxx>
- Date: Tue, 27 Sep 2005 11:16:21 -0700
"When the statement is written without the REPLACING phrase, data items of
the categories alphabetic, alphanumeric and alphanumeric edited are set to
spaces; data items of category numeric and numeric edited are set to zeroes.
...." (ANSI X3.23-1985 page VI-93, 6.17, The INITIALIZE statement, General
Rule 5.)
This doesn't address what your particular implementation actually DOES, but
it does address what the '85 standard says it OUGHT TO DO.
Note that index data items and elementary FILLER data items in the record
aren't affected by INITIALIZE at all, and note also that if an item has a
VALUE clause it isn't "re-applied" by INITIALIZE.
The 2002 standard adds "WITH FILLER" and "TO VALUE" syntax to INITIALIZE to
provide for these issues.
-Chuck Stevens
"rockocubs" <rphipps@xxxxxxxxxxxxxxxxxx> wrote in message
news:175c3e3def2daf1a23aa674f5b3adf87@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Can someone settle an argument for me. Does a initialize on an 01 level
> move spaces to pic x fields and zeroes to pic 9 fields or does it move
> spaces to the whole 01 level?
>
.
- Follow-Ups:
- Re: Initialize
- From: rockocubs
- Re: Initialize
- References:
- Initialize
- From: rockocubs
- Initialize
- Prev by Date: Initialize
- Next by Date: Re: Initialize
- Previous by thread: Initialize
- Next by thread: Re: Initialize
- Index(es):