View previous topic :: View next topic
|
Author |
Message |
abhijeet3162002
New User
Joined: 05 Jul 2004 Posts: 6 Location: mumbai
|
|
|
|
Hello Cobol users,
I hav one query...
While declaring level numbers in working storage section what is the significance of 66,77,88 levels
i searched most of d tutorials but found nothing spl...
waiting for ur valuable reply |
|
Back to top |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
|
|
hi abhijeet,
Significance of level numbers 66,77,88.
I think this is the basic thing right!!
66---used for renames clause
77--- for defining individual items
88---for condition variables.
Still I am in doubt whether i answered you or not.
Thanks,
Anu |
|
Back to top |
|
|
abhijeet3162002
New User
Joined: 05 Jul 2004 Posts: 6 Location: mumbai
|
|
|
|
Thanks for your valuable reply Anuradha.
Actually I started learning cobol a week ago.
I got the significance of 77 & 88 levels but i m still confused about level 66
I gone thru many source codes available at my place but it was very rarely used.
Can you tell me what is exactly renaming the clause.
Thanks once again |
|
Back to top |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
Back to top |
|
|
jyothi_priya
New User
Joined: 09 Jan 2004 Posts: 10
|
|
Back to top |
|
|
PKumar
New User
Joined: 28 Sep 2004 Posts: 8
|
|
|
|
abhijeet3162002 wrote: |
Hello Cobol users,
I hav one query...
While declaring level numbers in working storage section what is the significance of 66,77,88 levels
i searched most of d tutorials but found nothing spl...
waiting for ur valuable reply |
Hi Abhi as per ur question regarding 66 it is used for Renameing the existing groups , ie rearraging the existing groups with new name but without alloting extra memory , i hope u can understand, u can think it as one of memory management future of Cobol.
With love
Pkumar |
|
Back to top |
|
|
jz1b0c
Active User
Joined: 25 Jan 2004 Posts: 160 Location: Toronto, Canada
|
|
|
|
[quote="PKumar"]
abhijeet3162002 wrote: |
Hello Cobol users,
I hav one query...
While declaring level numbers in working storage section what is the significance of 66,77,88 levels
i searched most of d tutorials but found nothing spl...
waiting for ur valuable reply |
Great Day!
Apart from what is mentioned above, there exists a level 49 in cobol
this is used for varchar type DB2 columns
see below example.
************************************************************
* COBOL DECLARATION FOR TABLE DEMO.ITEMS
************************************************************
01 DCLITEMS.
10 ITEMS-ORD-NO PIC S9(09) COMP.
10 ITEMS-ITEM-NO PIC S9(04) COMP.
10 ITEMS-PROD-ID PIC X(4).
10 ITEMS-QTY-ORDERED PIC S9(04) COMP.
10 ITEMS-QTY-SHIPPED PIC S9(04) COMP.
10 ITEMS-AMT-EACH PIC S9(05)v9(02) COMP-3.
10 ITEMS-DATE-ENTERED PIC X(26).
10 ITEMS-DATE-SHIPPED PIC X(10).
10 ITEMS-ITEM-NOTES.
49 ITEMS-ITEM-NOTES-LEN PIC S9(04) COMP.
49 ITEMS-ITEM-NOTES-TEXT PIC X(560). |
|
Back to top |
|
|
|