View previous topic :: View next topic
|
Author |
Message |
pravinj
New User
Joined: 10 Jun 2008 Posts: 24 Location: india
|
|
|
|
I am working on a REXX utility to calculate the memory in bytes occupied between two points (marked in labels) in the working storage section of COBOL pgm/COPYBOOK. Sometime back i was trying to parse each string between the labels and calculate the lenght by computing bytes of each picture clause. But that's really a tough job to get through all different scenarios.
Now i have got into PLAN B of writing the marked portion of the copybook to a temporary PDS and then calling CA FILEMASTER Layout view option. I succeeded in validating the labels/ creating the temporary PDS/ and almost reaching to the data entry panel of view layout option. But i wish to bypass the data entry panel and display the layout (with total bytes occupied) of temporary member created.
Can you share your thoughts and approaches for this idea? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If this was my requirement, i believe i'd have used the output of a compile and calculated the difference of the displacements. . .
I'm not familiar with FileMaster, but if there is a way to run it in batch, you could parse the output generated. . . |
|
Back to top |
|
|
pravinj
New User
Joined: 10 Jun 2008 Posts: 24 Location: india
|
|
|
|
I could go on with this option, but if i have to find the length on the code which is still under development or if i need to find the length of the copybook? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Put what is available in some throw-away code and "compile" it. . .
It will have errors, but the lengths/displacements will be resolved - unless the data definitions are incomplete/wrong. . . |
|
Back to top |
|
|
|