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

How to find out unused data items from DATA division


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
venosol
Warnings : 1

New User


Joined: 16 Nov 2006
Posts: 43
Location: Bangalore

PostPosted: Wed Apr 18, 2007 8:17 pm
Reply with quote

I had copy library having 50 dataitems.

I had used 25 data items in procedure division. How to find out the unused data items in this division.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Wed Apr 18, 2007 8:36 pm
Reply with quote

See the compiler listing. You will see expanded copybook there.From that you can know items you have used and which you have not. icon_confused.gif
Tell me if this addressed your question correctly.
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Thu Apr 19, 2007 12:05 am
Reply with quote

HI venosol,

Checkout with your shop....There should be a tool that might help you. Or else u need to mannually check each and every Variable. Open in browse mode and find all gives your the count. If it is '1' ,t hen it is not used else where.

~Vamsi
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Apr 19, 2007 2:23 am
Reply with quote

I agree with Abhijit, back in the "old'n" days, you could get a data division listing in actual real order and see the elementary and group items that had no reference from within the program....
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top