View previous topic :: View next topic
|
Author |
Message |
nutakkimurali
New User
Joined: 15 Nov 2005 Posts: 22
|
|
|
|
Can anybody please explain about the STG (STORAGE) & CSTG(CURRENTSTORAGE) Built-in Functions with an Example.
----------
Muralee |
|
Back to top |
|
|
ch.rajashekar1
New User
Joined: 05 Dec 2005 Posts: 4 Location: B'lore
|
|
|
|
HI,
STG and CSTG are synonims of SIZE and CURRENTSIZE..
Here is the example which gives clear idea about the difference btw both
Code: |
221.1 Example
dcl Scids char(17) init('See you at SCIDS!') static;
dcl Vscids char(20) varying init('See you at SCIDS!') static;
dcl Stg fixed bin(31);
Stg = storage (Scids); /* 17 bytes */
Stg = currentsize (Scids); /* 17 bytes */
Stg = size (Vscids); /* 22 bytes */
Stg = currentsize (Vscids); /* 19 bytes */
Stg = size (Stg); /* 4 bytes */
Stg = currentsize (Stg); /* 4 bytes */
|
|
|
Back to top |
|
|
|