Re: Question on Cobol Move statement - mixed move x to zzz9.
- From: Rene_Surop <infodynamics_ph@xxxxxxxxx>
- Date: 21 May 2007 19:29:50 -0700
Better yet....
05 WS-PROP-PREMISE PIC X(04).
05 WS-FORMAT-4 PIC ZZZ9.
WS-PROP-PREMISE has a value of 3. That is 3 followed by 3 spaces.
The code MOVE WS-PROP-PREMISE to WS-FORMAT-4 results in
3000
05 WS-PROP-PREMISE PIC X(04).
05 WS-FORMAT-4 redefines WS-PROP-PREMISE PIC ZZZ9.
Then MOVE 3 TO WS-FORMAT-4 instead.... nobody uses REDEFINES anymore.
Aside from shared memory bits, it works all the time.
It should work the first time.... naahh.
.
- Follow-Ups:
- Re: Question on Cobol Move statement - mixed move x to zzz9.
- From: Pete Dashwood
- Re: Question on Cobol Move statement - mixed move x to zzz9.
- From: Howard Brazee
- Re: Question on Cobol Move statement - mixed move x to zzz9.
- References:
- Question on Cobol Move statement - mixed move x to zzz9.
- From: Michael Schey
- Question on Cobol Move statement - mixed move x to zzz9.
- Prev by Date: Re: GO TO HELL.
- Next by Date: Re: OT: Politically Correct
- Previous by thread: Re: Question on Cobol Move statement - mixed move x to zzz9.
- Next by thread: Re: Question on Cobol Move statement - mixed move x to zzz9.
- Index(es):
Relevant Pages
|