Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Calulating memory allocated for Cobol variables using REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Edward Nelson

New User


Joined: 08 Feb 2013
Posts: 2
Location: India

PostPosted: Fri Feb 08, 2013 11:43 am    Post subject: Calulating memory allocated for Cobol variables using REXX
Reply with quote

Hi,

Are there any REXX commands which would help in finding out the memory occupied by a COBOL working storage variable ?

The requirement is to develop a REXX tool which will create a report listing all the variables used in a COBOL program along with the memory occupied by those variables.

Any pointers will be highly appreciated.

Thanks and Regards,
Edward.
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Fri Feb 08, 2013 11:58 am    Post subject: Reply to: Calulating memory allocated for Cobol variables us
Reply with quote

unless You want to reimplement Yourself in REXX all the quirks of compiling a cobol fragment

the fastest and reasonable way is to analyse the listings of the compilations

but if You google or search the forum You might find some <partial> implementations
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Fri Feb 08, 2013 12:34 pm    Post subject: Reply to: Calulating memory allocated for Cobol variables us
Reply with quote

Print the listing. Burst all the pages. Staple together those mapping the data division. Use correcting-fluid to blank out the Compile information on the top line of each page and replace with "Dun by Rexx".
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1018
Location: Oostende, Belgium

PostPosted: Fri Feb 08, 2013 4:13 pm    Post subject: Re: Calulating memory allocated for Cobol variables using RE
Reply with quote

Edward Nelson wrote:
Hi,

Are there any REXX commands which would help in finding out the memory occupied by a COBOL working storage variable ?

The requirement is to develop a REXX tool which will create a report listing all the variables used in a COBOL program along with the memory occupied by those variables.

And which moron gave you this requirement?
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2038
Location: Silicon Valley

PostPosted: Mon Feb 11, 2013 10:08 pm    Post subject: Reply to: Calulating memory allocated for Cobol variables us
Reply with quote

Quote:
replace with "Dun by Rexx".


LIKE button!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Release quantity that was allocated v... Auryn JCL & VSAM 5 Thu May 18, 2017 6:02 pm
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us