Cobol/400
From: mcintyre (edv_at_betriebsdirektor.de)
Date: 10/15/04
- Previous message: Joe Zitzelberger: "Re: Creative Javascript writing (was: OFF Topic)"
- Next in thread: Lueko Willms: "Re: Cobol/400"
- Reply: Lueko Willms: "Re: Cobol/400"
- Reply: Richard: "Re: Cobol/400"
- Reply: LX-i: "Re: Cobol/400"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 15 Oct 2004 14:47:11 +0200
I'm new to Cobol/400 any I'm trying to get familiar... Coming from VMS,
I don't understand the behavior of the as/400 with this example:
01 W-DATE-2.
05 W-YEAR PIC 99.
05 FILLER PIC X VAL "/".
05 W-MONTH PIC 99.
05 FILLER PIC X VAL "/".
05 W-DAY PIC 99.
After moving the current date into this field, the display looks like:
04 10 15
When I declare the field like this:
01 W-DATE-2.
05 W-YEAR PIC 99.
05 W-F1 PIC X.
05 W-MONTH PIC 99.
05 W-F2 PIC X.
05 W-DAY PIC 99.
and move the slashes into W-F1 and W-F2, the display shows:
04 / 10 / 15
Where do the blanks come from, and how to avoid them? Any help would be
appreciated.
john
- Previous message: Joe Zitzelberger: "Re: Creative Javascript writing (was: OFF Topic)"
- Next in thread: Lueko Willms: "Re: Cobol/400"
- Reply: Lueko Willms: "Re: Cobol/400"
- Reply: Richard: "Re: Cobol/400"
- Reply: LX-i: "Re: Cobol/400"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|