View previous topic :: View next topic
|
Author |
Message |
nithivenkat
New User
Joined: 15 Sep 2008 Posts: 22 Location: Mumbai
|
|
|
|
Hi,
I am new to cobol coding. Can someone explain me how will the following variables be defined?
05 CON-PRICE PIC $$$.999.
05 CON13-PRICE REDEFINES CON-PRICE
PIC $$$.99B.
Note: Basically i want to know what the "B" in the second pic clause stands for?
Thanks |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
"B" stands for blank. It is simple insertion type of editing symbol |
|
Back to top |
|
|
nithivenkat
New User
Joined: 15 Sep 2008 Posts: 22 Location: Mumbai
|
|
|
|
For example, if i give value for both the variables as 100.999, the first variable will hold 100.999 but the second one will hold 100.99 [The last byte is blanked out]??
Please confirm if my understanding is correct. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
nithivenkat,
suggest you do some research on REDEFINES clause. |
|
Back to top |
|
|
|