IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Explain about the STG (STORAGE) & CSTG(CURRENTSTORAGE)


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nutakkimurali

New User


Joined: 15 Nov 2005
Posts: 22

PostPosted: Thu Mar 02, 2006 12:16 pm
Reply with quote

Can anybody please explain about the STG (STORAGE) & CSTG(CURRENTSTORAGE) Built-in Functions with an Example.

----------
Muralee
Back to top
View user's profile Send private message
ch.rajashekar1

New User


Joined: 05 Dec 2005
Posts: 4
Location: B'lore

PostPosted: Wed Jul 19, 2006 10:28 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts CICS vs LE: STORAGE option CICS 0
No new posts Insufficient Storage ABENDS & Debugging 7
No new posts DB2 Statistics - Using EXPLAIN and qu... DB2 1
No new posts Interviewers are surprised with my an... Mainframe Interview Questions 6
Search our Forums:

Back to Top